mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update UPDATE.sh
This commit is contained in:
parent
98f647e960
commit
f441462416
@ -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/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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user