fix caddy.service not found. fix #397 #398

This commit is contained in:
233boy
2019-11-12 15:30:54 +08:00
parent d568ae0299
commit 5c0193f847
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ _install_caddy_service() {
setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/caddy
if [[ $systemd ]]; then
# cp -f ${caddy_tmp}init/linux-systemd/caddy.service /lib/systemd/system/
cp -f ${caddy_tmp}init/linux-systemd/caddy.service /lib/systemd/system/
# if ! wget https://raw.githubusercontent.com/caddyserver/caddy/master/dist/init/linux-systemd/caddy.service -O /lib/systemd/system/caddy.service; then
# echo -e "$red 下载 caddy.service 失败!$none" && exit 1
# fi

View File

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