GUACAMOLE-100: Use contents of provided GUACAMOLE_HOME as the basis for GUACAMOLE_HOME generated by the Docker container.

This commit is contained in:
Michael Jumper
2016-09-01 23:00:25 -07:00
parent 9240dd82c1
commit ebbed75550

View File

@@ -28,6 +28,8 @@
## script, running in the foreground until terminated. ## script, running in the foreground until terminated.
## ##
GUACAMOLE_HOME_TEMPLATE="$GUACAMOLE_HOME"
GUACAMOLE_HOME="$HOME/.guacamole" GUACAMOLE_HOME="$HOME/.guacamole"
GUACAMOLE_EXT="$GUACAMOLE_HOME/extensions" GUACAMOLE_EXT="$GUACAMOLE_HOME/extensions"
GUACAMOLE_LIB="$GUACAMOLE_HOME/lib" GUACAMOLE_LIB="$GUACAMOLE_HOME/lib"
@@ -341,6 +343,14 @@ start_guacamole() {
rm -Rf "$GUACAMOLE_HOME" rm -Rf "$GUACAMOLE_HOME"
#
# Copy contents of provided GUACAMOLE_HOME template, if any
#
if [ -n "$GUACAMOLE_HOME_TEMPLATE" ]; then
cp -a "$GUACAMOLE_HOME_TEMPLATE/." "$GUACAMOLE_HOME/"
fi
# #
# Create and define Guacamole lib and extensions directories # Create and define Guacamole lib and extensions directories
# #