start vpn only

This commit is contained in:
2025-02-27 17:51:45 +01:00
parent f5ab91004c
commit f6d85c1a56
2 changed files with 14 additions and 2 deletions

View File

@@ -745,6 +745,13 @@ execute_task() {
add_repository "$NEW_REPO" add_repository "$NEW_REPO"
JSON_TARGET="" JSON_TARGET=""
elif [ "$TASK_NAME" == "save_vpn" ]; then
# install vpn only
sh /scripts/install.sh "$B64_JSON" "$service_exec" "vpn" "$GLOBAL_VERSION"
JSON_TARGET=$(echo '{ "DATE": "'$DATE'", "STATUS": "'$VPN_STATUS'", "RESULT": "'$VPN_RESULT'" }' | jq -r . | base64 -w0)
elif [ "$TASK_NAME" == "containers" ]; then # not in use elif [ "$TASK_NAME" == "containers" ]; then # not in use
CONTAINERS=$(docker ps -a --format '{{.Names}} {{.Status}}' | grep -v framework-scheduler) CONTAINERS=$(docker ps -a --format '{{.Names}} {{.Status}}' | grep -v framework-scheduler)
RESULT=$(echo "$CONTAINERS" | base64 -w0) RESULT=$(echo "$CONTAINERS" | base64 -w0)

View File

@@ -162,11 +162,16 @@ if [[ $FIRST_INSTALL == "true" ]]; then
--env GLOBAL_VERSION=$GLOBAL_VERSION \ --env GLOBAL_VERSION=$GLOBAL_VERSION \
--rm \ --rm \
$DOCKER_REGISTRY_URL/installer-tool $DOCKER_REGISTRY_URL/installer-tool
else
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/installer-tool
$SUDO_CMD docker pull $DOCKER_REGISTRY_URL/setup $SUDO_CMD docker pull $DOCKER_REGISTRY_URL/setup
fi fi
# # test - alias doesn't work inside a function # # test - alias doesn't work inside a function