From 9ef3c98289eb4b213cb326f945ac16f8eee19175 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Wed, 7 Feb 2024 21:26:08 -0600 Subject: [PATCH] update extension cleaning --- root/etc/cont-init.d/50-extensions.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/root/etc/cont-init.d/50-extensions.sh b/root/etc/cont-init.d/50-extensions.sh index c5ec114..a38633b 100644 --- a/root/etc/cont-init.d/50-extensions.sh +++ b/root/etc/cont-init.d/50-extensions.sh @@ -1,7 +1,12 @@ #!/usr/bin/with-contenv sh -# clean up extensions -for i in auth-ldap auth-duo auth-header auth-cas auth-openid auth-quickconnect auth-totp; do +echo "Cleaning Extensions from previous Guacamole versions" +for e in $(ls -1 ${GUACAMOLE_HOME}/extensions | grep -v ${GUAC_VER}); do + rm ${GUACAMOLE_HOME}/extensions/${e} +done + +echo "Cleaning Extensions" +for i in auth-duo auth-header auth-json auth-ldap auth-quickconnect auth-sso-cas auth-sso-openid auth-sso-saml auth-totp history-recording-storage vault-ksm; do rm -rf ${GUACAMOLE_HOME}/extensions/guacamole-${i}-${GUAC_VER}.jar done