Merge branch 'bugfix/KASM-5419_fix_session_recorder_on_all_distros' into 'develop'

KASM-5419 Test LD_LIBRARY_PATH fix for recording

Closes KASM-5419

See merge request kasm-technologies/internal/workspaces-core-images!157
This commit is contained in:
Richard Koliser 2024-01-13 02:26:24 +00:00
commit 0174593c8e
2 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -2,7 +2,17 @@
### every exit != 0 fails the script
set -e
COMMIT_ID="b9f195d8aac56b3127be9083470bddc360e30377"
if [[ "${DISTRO}" == "alpine" ]]; then
apk add --no-cache \
runuser \
xhost
elif [ "${DISTRO}" == "opensuse" ]; then
zypper ar -cfp 90 'https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_$releasever/' packman
zypper -n --gpg-auto-import-keys dup --from packman --allow-vendor-change
zypper install -ny xhost
fi
COMMIT_ID="9abeb2d5fba0bfe90d3fe60457a58ccc3ed1ad1d"
BRANCH="main"
COMMIT_ID_SHORT=$(echo "${COMMIT_ID}" | cut -c1-6)