GUACAMOLE-2076: Link contents of GUACAMOLE_HOME subdirectories only if they exist.
This commit is contained in:
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
|
||||||
|
|||||||
Reference in new issue
Block a user