mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-21 15:03:14 +01:00
KASM-6161 Mark the container as running if egress was established an no profile sync is enabled
This commit is contained in:
parent
e11736723b
commit
4c2e1f05b1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user