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:
Matthew McClaskey 2024-03-28 11:18:43 +00:00
commit e383e43210
2 changed files with 7 additions and 6 deletions

View File

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

View File

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