From 4c2e1f05b19570f23dda8a42dc7698d584935b6d Mon Sep 17 00:00:00 2001 From: Mariusz Marciniak Date: Fri, 12 Jul 2024 12:24:25 +0200 Subject: [PATCH] KASM-6161 Mark the container as running if egress was established an no profile sync is enabled --- src/common/startup_scripts/vnc_startup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/common/startup_scripts/vnc_startup.sh b/src/common/startup_scripts/vnc_startup.sh index a376630..08f8e36 100755 --- a/src/common/startup_scripts/vnc_startup.sh +++ b/src/common/startup_scripts/vnc_startup.sh @@ -427,7 +427,7 @@ function wait_for_egress_signal() { if [ "$egress_status" == "error" ]; then echo "Failed to establish egress gateway. Exiting..." - exit 1 + exit 0 fi } @@ -446,6 +446,11 @@ function wait_for_network_devices() { if [[ $interface == k-p-* ]]; then wait_for_egress_signal + + if [ -z "$KASM_PROFILE_LDR" ]; then + http_proxy="" https_proxy="" curl -k "https://${KASM_API_HOST}:${KASM_API_PORT}/api/set_kasm_session_status?token=${KASM_API_JWT}" -H 'Content-Type: application/json' -d '{"status": "running"}' + fi + return fi done