fix caddy cannot running. fix #392, fix #392

This commit is contained in:
233boy
2019-11-08 14:28:04 +08:00
parent af60aac5dd
commit 3a2b81cdf7
2 changed files with 2 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ _install_caddy_service() {
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
sed -i "s/-log-timestamps=false//g" /lib/systemd/system/caddy.service
# # sed -i "s/www-data/root/g" /lib/systemd/system/caddy.service
# sed -i "/on-abnormal/a RestartSec=3" /lib/systemd/system/caddy.service
# sed -i "s/on-abnormal/always/" /lib/systemd/system/caddy.service