From 3b17a2b21aa96d8dbfa65406c1f3732555a1181c Mon Sep 17 00:00:00 2001 From: Ian Tangney Date: Mon, 22 Jan 2024 16:57:29 +0000 Subject: [PATCH] KASM-5475 Fix default setting for KASM_SVC_RECORDER --- src/common/startup_scripts/vnc_startup.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/common/startup_scripts/vnc_startup.sh b/src/common/startup_scripts/vnc_startup.sh index 8db804d..d5f16fe 100755 --- a/src/common/startup_scripts/vnc_startup.sh +++ b/src/common/startup_scripts/vnc_startup.sh @@ -314,7 +314,7 @@ function custom_startup (){ } function ensure_recorder_running () { - if [[ ${KASM_SVC_RECORDER:-1} != 1 ]]; then + if [[ ${KASM_SVC_RECORDER:-0} != 1 ]]; then return fi @@ -466,12 +466,12 @@ do window_manager) echo "Window manager crashed, restarting" - if [[ ${KASM_SVC_RECORDER:-1} == 1 ]]; then - echo "Waiting for recorder service to upload all pending recordings" - ensure_recorder_terminates_gracefully - echo "Recorder service has terminated, exiting container" - exit 1 - fi + if [[ ${KASM_SVC_RECORDER:-0} == 1 ]]; then + echo "Waiting for recorder service to upload all pending recordings" + ensure_recorder_terminates_gracefully + echo "Recorder service has terminated, exiting container" + exit 1 + fi start_window_manager ;;