From cdfd9df07908dd28afab9b6fdf8a1ec22408006e Mon Sep 17 00:00:00 2001 From: hael Date: Tue, 4 Mar 2025 12:11:25 +0100 Subject: [PATCH] vpn install dirs and files --- scripts/scheduler/install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/scheduler/install.sh b/scripts/scheduler/install.sh index 1f7f617..68b02e4 100755 --- a/scripts/scheduler/install.sh +++ b/scripts/scheduler/install.sh @@ -165,8 +165,17 @@ if [[ $FIRST_INSTALL == "true" ]]; then elif [ "$FIRST_INSTALL" == "vpn" ]; then + INIT_SERVICE_PATH=/etc/user/config/services + AUTO_START_SERVICES="/etc/system/data/" + get_vpn_key + $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 + echo "$INIT_SERVICE_PATH/firewall-vpn-proxy-postrouting" >>$AUTO_START_SERVICES/.init_services + echo "$INIT_SERVICE_PATH/firewall-vpn-proxy-prerouting" >>$AUTO_START_SERVICES/.init_services + exit; else