mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-21 23:13:08 +01:00
Merge branch 'feature/KASM-5694-default-symlink' into 'develop'
KASM-5694 change Downloads symlink to have a default and only change if home... See merge request kasm-technologies/internal/workspaces-core-images!196
This commit is contained in:
commit
e383e43210
@ -33,13 +33,15 @@ function verify_profile_config {
|
||||
fi
|
||||
|
||||
|
||||
if [ -d "$KASM_VNC_PATH/Downloads/Downloads" ]; then
|
||||
echo "Downloads RX Symlink Exists"
|
||||
else
|
||||
echo "Creating Downloads RX Symlink"
|
||||
if [[ "$(readlink -f $KASM_VNC_PATH/www/Downloads/Downloads)" != "$HOME/Downloads" ]]; then
|
||||
echo "Fixing Downloads RX Symlink"
|
||||
rm -f $KASM_VNC_PATH/www/Downloads/Downloads
|
||||
ln -sf $HOME/Downloads $KASM_VNC_PATH/www/Downloads/Downloads
|
||||
else
|
||||
echo "Downloads RX Symlink Exists"
|
||||
fi
|
||||
|
||||
|
||||
ls -la $HOME/Desktop
|
||||
|
||||
}
|
||||
|
@ -191,9 +191,8 @@ else
|
||||
apt-get install -y /tmp/kasmvncserver.deb
|
||||
rm -f /tmp/kasmvncserver.deb
|
||||
fi
|
||||
#mkdir $KASM_VNC_PATH/certs
|
||||
mkdir -p $KASM_VNC_PATH/www/Downloads
|
||||
chown -R 0:0 $KASM_VNC_PATH
|
||||
chmod -R og-w $KASM_VNC_PATH
|
||||
#chown -R 1000:0 $KASM_VNC_PATH/certs
|
||||
ln -sf /home/kasm-user/Downloads $KASM_VNC_PATH/www/Downloads/Downloads
|
||||
chown -R 1000:0 $KASM_VNC_PATH/www/Downloads
|
||||
|
Loading…
Reference in New Issue
Block a user