mirror of
https://github.com/jwetzell/docker-guacamole.git
synced 2026-09-11 17:19:35 +00:00
don't clear out extensions directory entirely on new guacamole version
This commit is contained in:
@@ -10,11 +10,6 @@ for i in auth-duo auth-header auth-json auth-ldap auth-quickconnect auth-sso-cas
|
|||||||
rm -rf ${GUACAMOLE_HOME}/extensions/guacamole-${i}-${GUAC_VER}.jar
|
rm -rf ${GUACAMOLE_HOME}/extensions/guacamole-${i}-${GUAC_VER}.jar
|
||||||
done
|
done
|
||||||
|
|
||||||
# if the guacamole version was bumped, delete the contents of the extensions directory - just on the first run
|
|
||||||
if [ "$(cat /config/.database-version)" != "$GUAC_VER" ]; then
|
|
||||||
rm -rf ${GUACAMOLE_HOME}/extensions/*
|
|
||||||
fi
|
|
||||||
|
|
||||||
# enable extensions
|
# enable extensions
|
||||||
for i in $(echo "$EXTENSIONS" | tr "," " "); do
|
for i in $(echo "$EXTENSIONS" | tr "," " "); do
|
||||||
cp ${GUACAMOLE_HOME}/extensions-available/guacamole-${i}-${GUAC_VER}.jar ${GUACAMOLE_HOME}/extensions
|
cp ${GUACAMOLE_HOME}/extensions-available/guacamole-${i}-${GUAC_VER}.jar ${GUACAMOLE_HOME}/extensions
|
||||||
|
|||||||
Reference in New Issue
Block a user