From eb86649ec3c91d8e5752bfba83a816c240dcdadb Mon Sep 17 00:00:00 2001 From: thelamer Date: Mon, 9 Sep 2024 11:50:17 -0400 Subject: [PATCH] update kasm init to support egress - alpine --- root/kasminit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/root/kasminit b/root/kasminit index 0abb94e..70d83b6 100755 --- a/root/kasminit +++ b/root/kasminit @@ -95,6 +95,9 @@ while :; do done egress_status=$(cat $egress_file) if [ "$egress_status" == "ready" ]; then + 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 break 2 fi if [ "$egress_status" == "error" ]; then