Update UPDATE.sh

This commit is contained in:
Stefan Pejcic
2024-12-04 13:04:56 +01:00
committed by GitHub
parent 1ec0e4e389
commit 2323337f16

View File

@@ -82,7 +82,9 @@ FUNCTIONS=(
# update opencli
opencli_update
update_nginx_conf
# ping us
verify_license
@@ -127,8 +129,18 @@ main() {
destroy_scroll_area
}
# for 0.3.8 only!
update_nginx_conf() {
wget -O /etc/openpanel/nginx/suspended_user.html https://raw.githubusercontent.com/stefanpejcic/openpanel-configuration/refs/heads/main/nginx/suspended_user.html
wget -O /etc/openpanel/nginx/suspended_website.html https://raw.githubusercontent.com/stefanpejcic/openpanel-configuration/refs/heads/main/nginx/suspended_website.html
wget -O /etc/openpanel/nginx/vhosts/domain.conf https://raw.githubusercontent.com/stefanpejcic/openpanel-configuration/refs/heads/main/nginx/vhosts/domain.conf
wget -O /etc/openpanel/nginx/vhosts/domain.conf_with_modsec https://github.com/stefanpejcic/openpanel-configuration/blob/main/nginx/vhosts/domain.conf_with_modsec
}
# print fullwidth line
print_space_and_line() {
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -