From 559d51d5107e98ec04c1dc7a4123e8407d029597 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Sun, 18 Aug 2024 17:44:36 +0200 Subject: [PATCH] Update UPDATE.sh --- version/0.2.5/UPDATE.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/version/0.2.5/UPDATE.sh b/version/0.2.5/UPDATE.sh index 6b4fd208..e25b07f4 100644 --- a/version/0.2.5/UPDATE.sh +++ b/version/0.2.5/UPDATE.sh @@ -104,8 +104,11 @@ FUNCTIONS=( # repalce ip with username in nginx container files nginx_change_in - - # + + # bind9 also + bind_also + + # ping us verify_license # new crons added @@ -287,9 +290,20 @@ systemctl daemon-reload } +bind_also(){ +systemctl stop bind9 +systemctl disable bind9 + +cd /root && docker compose up -d openpanel_dns + +} + nginx_change_in(){ +systemctl stop nginx +systemctl disable nginx + # Check if jq is installed if ! command -v jq &> /dev/null; then # Install jq using apt @@ -311,7 +325,8 @@ for USERNAME in $DOCKER_USERS; do done opencli server-recreate_hosts -docker exec nginx bash -c "nginx -t && nginx -s reload" +cd /root && docker compose up -d nginx +#####docker exec nginx bash -c "nginx -t && nginx -s reload" }