mirror of
https://github.com/MysticRyuujin/guac-install.git
synced 2023-10-10 13:36:56 +02:00
Added section to handle SAML authentication upgrade
This commit is contained in:
parent
cce8f2b5a8
commit
9884b77218
@ -197,6 +197,27 @@ for file in /etc/guacamole/extensions/guacamole-auth-duo*.jar; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Handle upgrading SAML plugin if present
|
||||||
|
for file in /etc/guacamole/extensions/guacamole-auth-saml*.jar; do
|
||||||
|
if [[ -f $file ]]; then
|
||||||
|
# Upgrade SAML
|
||||||
|
echo -e "${BLUE}SAML extension was found, upgrading...${NC}"
|
||||||
|
rm /etc/guacamole/extensions/guacamole-auth-saml*.jar
|
||||||
|
wget -q --show-progress -O guacamole-auth-saml-${GUACVERSION}.tar.gz ${SERVER}/binary/guacamole-auth-saml-${GUACVERSION}.tar.gz
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo -e "${RED}Failed to download guacamole-auth-saml-${GUACVERSION}.tar.gz"
|
||||||
|
echo -e "${SERVER}/binary/guacamole-auth-saml-${GUACVERSION}.tar.gz"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo -e "${GREEN}Downloaded guacamole-auth-saml-${GUACVERSION}.tar.gz${NC}"
|
||||||
|
tar -xzf guacamole-auth-saml-${GUACVERSION}.tar.gz
|
||||||
|
cp guacamole-auth-saml-${GUACVERSION}/guacamole-auth-saml-${GUACVERSION}.jar /etc/guacamole/extensions/
|
||||||
|
echo -e "${GREEN}SAML copied to extensions.${NC}"
|
||||||
|
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Fix for #196
|
# Fix for #196
|
||||||
mkdir -p /usr/sbin/.config/freerdp
|
mkdir -p /usr/sbin/.config/freerdp
|
||||||
chown daemon:daemon /usr/sbin/.config/freerdp
|
chown daemon:daemon /usr/sbin/.config/freerdp
|
||||||
|
Loading…
Reference in New Issue
Block a user