pull/95/head
233boy 6 years ago
parent eff6b1c06e
commit d375a9ae2d
  1. 2
      src/download-caddy.sh
  2. 2
      v2ray.sh

@ -1,6 +1,7 @@
_download_caddy_file() { _download_caddy_file() {
local caddy_tmp="/tmp/install_caddy/" local caddy_tmp="/tmp/install_caddy/"
local caddy_tmp_file="/tmp/install_caddy/caddy.tar.gz" local caddy_tmp_file="/tmp/install_caddy/caddy.tar.gz"
[[ -d $caddy_tmp ]] && rm -rf $caddy_tmp
if [[ $sys_bit == "i386" || $sys_bit == "i686" ]]; then if [[ $sys_bit == "i386" || $sys_bit == "i686" ]]; then
local caddy_download_link="https://caddyserver.com/download/linux/386?license=personal" local caddy_download_link="https://caddyserver.com/download/linux/386?license=personal"
else else
@ -19,7 +20,6 @@ _download_caddy_file() {
if [[ ! -f /usr/local/bin/caddy ]]; then if [[ ! -f /usr/local/bin/caddy ]]; then
echo -e "$red 安装 Caddy 出错!" && exit 1 echo -e "$red 安装 Caddy 出错!" && exit 1
fi fi
rm -rf $caddy_tmp
} }
_install_caddy_service() { _install_caddy_service() {
setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/caddy setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/caddy

@ -10,7 +10,7 @@ none='\e[0m'
# Root # Root
[[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1 [[ $(id -u) != 0 ]] && echo -e " 哎呀……请使用 ${red}root ${none}用户运行 ${yellow}~(^_^) ${none}" && exit 1
_version="v3.01" _version="v3.02"
cmd="apt-get" cmd="apt-get"

Loading…
Cancel
Save