Update caddy

This commit is contained in:
lmq8267 2024-01-18 16:06:18 +08:00 committed by GitHub
parent 0cecfa3fb8
commit 386a9c4832
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,6 +139,9 @@ header {
$webdavs
EOF
else
logpath="$(cat /etc/caddy/Caddyfile | grep "output file" | awk -F 'output file' '{print $2}' | tr -d '{ ')"
[ ! -z "$logpath" ] && uci set caddy.@caddy[0].log_dir=$logpath
fi
procd_open_instance caddy
procd_set_param command $PROG