diff --git a/version/1.3.4/UPDATE.sh b/version/1.3.4/UPDATE.sh index 956c20e3..7181ac3d 100644 --- a/version/1.3.4/UPDATE.sh +++ b/version/1.3.4/UPDATE.sh @@ -3,3 +3,12 @@ wget -O /etc/openpanel/openadmin/config/features.json https://raw.githubusercontent.com/stefanpejcic/openpanel-configuration/refs/heads/main/openadmin/config/features.json wget -O /etc/openpanel/openpanel/features/default.txt https://raw.githubusercontent.com/stefanpejcic/openpanel-configuration/refs/heads/main/openpanel/features/default.txt + +CADDYFILE="/etc/openpanel/caddy/Caddyfile" + +if grep -q "^ *admin off" "$CADDYFILE"; then + sed -i 's/^ *admin off/#admin off/' "$CADDYFILE" + echo "'admin off' has been commented out." +else + echo "No 'admin off' line found or it's already commented." +fi