1
0
mirror of https://github.com/MysticRyuujin/guac-install.git synced 2023-10-10 13:36:56 +02:00

Fixed to match new package naming scheme for 1.4.0

This commit is contained in:
Tom Maguire 2023-01-03 16:59:42 +00:00 committed by GitHub
parent 9884b77218
commit 55ea4737a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -202,16 +202,36 @@ for file in /etc/guacamole/extensions/guacamole-auth-saml*.jar; do
if [[ -f $file ]]; then if [[ -f $file ]]; then
# Upgrade SAML # Upgrade SAML
echo -e "${BLUE}SAML extension was found, upgrading...${NC}" echo -e "${BLUE}SAML extension was found, upgrading...${NC}"
rm /etc/guacamole/extensions/guacamole-auth-saml*.jar rm /etc/guacamole/extensions/guacamole-auth-sso-saml*.jar
wget -q --show-progress -O guacamole-auth-saml-${GUACVERSION}.tar.gz ${SERVER}/binary/guacamole-auth-saml-${GUACVERSION}.tar.gz wget -q --show-progress -O guacamole-auth-sso-saml-${GUACVERSION}.tar.gz ${SERVER}/binary/guacamole-auth-sso-saml-${GUACVERSION}.tar.gz
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo -e "${RED}Failed to download guacamole-auth-saml-${GUACVERSION}.tar.gz" echo -e "${RED}Failed to download guacamole-auth-sso-saml-${GUACVERSION}.tar.gz"
echo -e "${SERVER}/binary/guacamole-auth-saml-${GUACVERSION}.tar.gz" echo -e "${SERVER}/binary/guacamole-auth-sso-saml-${GUACVERSION}.tar.gz"
exit 1 exit 1
fi fi
echo -e "${GREEN}Downloaded guacamole-auth-saml-${GUACVERSION}.tar.gz${NC}" echo -e "${GREEN}Downloaded guacamole-auth-sso-saml-${GUACVERSION}.tar.gz${NC}"
tar -xzf guacamole-auth-saml-${GUACVERSION}.tar.gz tar -xzf guacamole-auth-sso-saml-${GUACVERSION}.tar.gz
cp guacamole-auth-saml-${GUACVERSION}/guacamole-auth-saml-${GUACVERSION}.jar /etc/guacamole/extensions/ cp guacamole-auth-sso-saml-${GUACVERSION}/guacamole-auth-sso-saml-${GUACVERSION}.jar /etc/guacamole/extensions/
echo -e "${GREEN}SAML copied to extensions.${NC}"
break
fi
done
# Handle newer install/upgrade with different package name
for file in /etc/guacamole/extensions/guacamole-auth-sso-saml*.jar; do
if [[ -f $file ]]; then
# Upgrade SAML
echo -e "${BLUE}SAML extension was found, upgrading...${NC}"
rm /etc/guacamole/extensions/guacamole-auth-sso-saml*.jar
wget -q --show-progress -O guacamole-auth-sso-saml-${GUACVERSION}.tar.gz ${SERVER}/binary/guacamole-auth-sso-saml-${GUACVERSION}.tar.gz
if [ $? -ne 0 ]; then
echo -e "${RED}Failed to download guacamole-auth-sso-saml-${GUACVERSION}.tar.gz"
echo -e "${SERVER}/binary/guacamole-auth-sso-saml-${GUACVERSION}.tar.gz"
exit 1
fi
echo -e "${GREEN}Downloaded guacamole-auth-sso-saml-${GUACVERSION}.tar.gz${NC}"
tar -xzf guacamole-auth-sso-saml-${GUACVERSION}.tar.gz
cp guacamole-auth-sso-saml-${GUACVERSION}/guacamole-auth-sso-saml-${GUACVERSION}.jar /etc/guacamole/extensions/
echo -e "${GREEN}SAML copied to extensions.${NC}" echo -e "${GREEN}SAML copied to extensions.${NC}"
break break