fix caddy download link

pull/635/head
233boy 4 years ago
parent f946429fe8
commit d6b5f0ab0e
  1. 3
      src/download-caddy.sh
  2. 2
      v2ray.sh

@ -5,7 +5,8 @@ _download_caddy_file() {
if [[ ! ${caddy_arch} ]]; then if [[ ! ${caddy_arch} ]]; then
echo -e "$red 获取 Caddy 下载参数失败!$none" && exit 1 echo -e "$red 获取 Caddy 下载参数失败!$none" && exit 1
fi fi
local caddy_download_link="https://caddyserver.com/download/linux/${caddy_arch}?license=personal" # local caddy_download_link="https://caddyserver.com/download/linux/${caddy_arch}?license=personal"
local caddy_download_link="https://github.com/caddyserver/caddy/releases/download/v1.0.4/caddy_v1.0.4_linux_${caddy_arch}.tar.gz"
mkdir -p $caddy_tmp mkdir -p $caddy_tmp

@ -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.33" _version="v3.34"
cmd="apt-get" cmd="apt-get"

Loading…
Cancel
Save