From 5dc27023a5adb6974b7c22719d8c8cf5d8db9f54 Mon Sep 17 00:00:00 2001 From: Ian Tangney Date: Wed, 10 Jan 2024 17:00:19 +0000 Subject: [PATCH] KASM-5419 Don't use sudo as we already run as root --- src/common/scripts/kasm_hook_scripts/kasm_recorder_startup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/scripts/kasm_hook_scripts/kasm_recorder_startup.sh b/src/common/scripts/kasm_hook_scripts/kasm_recorder_startup.sh index 7a71b15..74d1f4c 100755 --- a/src/common/scripts/kasm_hook_scripts/kasm_recorder_startup.sh +++ b/src/common/scripts/kasm_hook_scripts/kasm_recorder_startup.sh @@ -2,8 +2,8 @@ set -e mkdir -p /opt/kasm/recordings -sudo chown kasm-recorder:kasm-recorder /opt/kasm/recordings -sudo chmod 700 /opt/kasm/recordings +chown kasm-recorder:kasm-recorder /opt/kasm/recordings +chmod 700 /opt/kasm/recordings # wait until X display is avaiable and allow the recorder to connect to it while ! xhost +SI:localuser:kasm-recorder 2>/dev/null; do