revert vpn install only
This commit is contained in:
2025-03-03 11:10:21 +00:00
parent abbe06b235
commit 2e4dc04379

View File

@@ -80,23 +80,6 @@ done
SUDO_CMD=""
# install VPN only
if [ "$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;
fi;
# first install - TODEL ??
if [[ $FIRST_INSTALL == "true" ]]; then
@@ -180,6 +163,12 @@ if [[ $FIRST_INSTALL == "true" ]]; then
--rm \
$DOCKER_REGISTRY_URL/installer-tool
elif [ "$FIRST_INSTALL" == "vpn" ]; then
get_vpn_key
$SERVICE_EXEC vpn-proxy start
exit;
else
$SUDO_CMD docker pull $DOCKER_REGISTRY_URL/installer-tool
$SUDO_CMD docker pull $DOCKER_REGISTRY_URL/setup