From 5d81bf648a8e83835147ae9ce58987483a3aac5a Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Fri, 5 Apr 2024 10:33:20 -0500 Subject: [PATCH] don't clear out extensions directory entirely on new guacamole version --- root/etc/cont-init.d/50-extensions.sh | 5 ----- 1 file changed, 5 deletions(-) diff --git a/root/etc/cont-init.d/50-extensions.sh b/root/etc/cont-init.d/50-extensions.sh index 9f2904c..60a80b2 100644 --- a/root/etc/cont-init.d/50-extensions.sh +++ b/root/etc/cont-init.d/50-extensions.sh @@ -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 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 for i in $(echo "$EXTENSIONS" | tr "," " "); do cp ${GUACAMOLE_HOME}/extensions-available/guacamole-${i}-${GUAC_VER}.jar ${GUACAMOLE_HOME}/extensions