GUACAMOLE-2076: Link contents of GUACAMOLE_HOME subdirectories only if they exist.

This commit is contained in:
Michael Jumper committed 2025-05-27 16:14:48 -07:00
1 parent ffbee1a460
commit e87534472b
1 file changed
+4
@@ -74,12 +74,16 @@ EOF
if [ -e "$GUACAMOLE_HOME_TEMPLATE" ]; then if [ -e "$GUACAMOLE_HOME_TEMPLATE" ]; then
# Create links for any libraries provided in the template GUACAMOLE_HOME # Create links for any libraries provided in the template GUACAMOLE_HOME
if [ -e "$GUACAMOLE_HOME_TEMPLATE/lib" ]; then
find "$GUACAMOLE_HOME_TEMPLATE/lib" -mindepth 1 -maxdepth 1 \ find "$GUACAMOLE_HOME_TEMPLATE/lib" -mindepth 1 -maxdepth 1 \
-exec ln -sv "{}" "$GUACAMOLE_HOME/lib/" ";" -exec ln -sv "{}" "$GUACAMOLE_HOME/lib/" ";"
fi
# Create links for any extensions provided in the template GUACAMOLE_HOME # Create links for any extensions provided in the template GUACAMOLE_HOME
if [ -e "$GUACAMOLE_HOME_TEMPLATE/extensions" ]; then
find "$GUACAMOLE_HOME_TEMPLATE/extensions" -mindepth 1 -maxdepth 1 \ find "$GUACAMOLE_HOME_TEMPLATE/extensions" -mindepth 1 -maxdepth 1 \
-exec ln -sv "{}" "$GUACAMOLE_HOME/extensions/" ";" -exec ln -sv "{}" "$GUACAMOLE_HOME/extensions/" ";"
fi
# Create links for all other files directly within the template # Create links for all other files directly within the template
# GUACAMOLE_HOME # GUACAMOLE_HOME