From ddc57f72bc61bb2fb73a90636d2e96cf98636c48 Mon Sep 17 00:00:00 2001 From: hael Date: Mon, 17 Mar 2025 23:22:08 +0100 Subject: [PATCH 1/2] fix wrong function name --- scripts/scheduler/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/scheduler/install.sh b/scripts/scheduler/install.sh index d962a90..9be688b 100755 --- a/scripts/scheduler/install.sh +++ b/scripts/scheduler/install.sh @@ -4,7 +4,7 @@ SERVICE_EXEC=$2 FIRST_INSTALL=$3 GLOBAL_VERSION=$4 -edit_user_user_json() { +edit_user_json() { if [ ! -f /etc/user/config/user.json ]; then install -m 664 -g 65534 /dev/null /etc/user/config/user.json From a3296361d6ddc4c67b484c4cd32f2160d75adbbe Mon Sep 17 00:00:00 2001 From: hael Date: Tue, 18 Mar 2025 00:00:38 +0100 Subject: [PATCH 2/2] stop vpn-proxy before start --- scripts/scheduler/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/scheduler/install.sh b/scripts/scheduler/install.sh index 9be688b..7469cce 100755 --- a/scripts/scheduler/install.sh +++ b/scripts/scheduler/install.sh @@ -202,6 +202,7 @@ elif [ "$FIRST_INSTALL" == "vpn" ]; then edit_user_json $LETSENCRYPT_MAIL $LETSENCRYPT_SERVERNAME + $SERVICE_EXEC vpn-proxy stop force $SERVICE_EXEC vpn-proxy start echo "$INIT_SERVICE_PATH/vpn-proxy.json" >>$AUTO_START_SERVICES/.init_services echo "$INIT_SERVICE_PATH/firewall-vpn-smarthost-loadbalancer" >>$AUTO_START_SERVICES/.init_services