mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-07 08:04:06 +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
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ -d "$KASM_VNC_PATH/Downloads/Downloads" ]; then
|
if [[ "$(readlink -f $KASM_VNC_PATH/www/Downloads/Downloads)" != "$HOME/Downloads" ]]; then
|
||||||
echo "Downloads RX Symlink Exists"
|
echo "Fixing Downloads RX Symlink"
|
||||||
else
|
rm -f $KASM_VNC_PATH/www/Downloads/Downloads
|
||||||
echo "Creating Downloads RX Symlink"
|
|
||||||
ln -sf $HOME/Downloads $KASM_VNC_PATH/www/Downloads/Downloads
|
ln -sf $HOME/Downloads $KASM_VNC_PATH/www/Downloads/Downloads
|
||||||
|
else
|
||||||
|
echo "Downloads RX Symlink Exists"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
ls -la $HOME/Desktop
|
ls -la $HOME/Desktop
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -191,9 +191,8 @@ else
|
|||||||
apt-get install -y /tmp/kasmvncserver.deb
|
apt-get install -y /tmp/kasmvncserver.deb
|
||||||
rm -f /tmp/kasmvncserver.deb
|
rm -f /tmp/kasmvncserver.deb
|
||||||
fi
|
fi
|
||||||
#mkdir $KASM_VNC_PATH/certs
|
|
||||||
mkdir -p $KASM_VNC_PATH/www/Downloads
|
mkdir -p $KASM_VNC_PATH/www/Downloads
|
||||||
chown -R 0:0 $KASM_VNC_PATH
|
chown -R 0:0 $KASM_VNC_PATH
|
||||||
chmod -R og-w $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
|
chown -R 1000:0 $KASM_VNC_PATH/www/Downloads
|
||||||
|
Loading…
Reference in New Issue
Block a user