mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2025-02-16 17:10:49 +01:00
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:
commit
0174593c8e
@ -2,8 +2,8 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
mkdir -p /opt/kasm/recordings
|
mkdir -p /opt/kasm/recordings
|
||||||
sudo chown kasm-recorder:kasm-recorder /opt/kasm/recordings
|
chown kasm-recorder:kasm-recorder /opt/kasm/recordings
|
||||||
sudo chmod 700 /opt/kasm/recordings
|
chmod 700 /opt/kasm/recordings
|
||||||
|
|
||||||
# wait until X display is avaiable and allow the recorder to connect to it
|
# wait until X display is avaiable and allow the recorder to connect to it
|
||||||
while ! xhost +SI:localuser:kasm-recorder 2>/dev/null; do
|
while ! xhost +SI:localuser:kasm-recorder 2>/dev/null; do
|
||||||
|
@ -2,7 +2,17 @@
|
|||||||
### every exit != 0 fails the script
|
### every exit != 0 fails the script
|
||||||
set -e
|
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"
|
BRANCH="main"
|
||||||
COMMIT_ID_SHORT=$(echo "${COMMIT_ID}" | cut -c1-6)
|
COMMIT_ID_SHORT=$(echo "${COMMIT_ID}" | cut -c1-6)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user