mirror of
https://git.koehlerweb.org/frodovdr/guac-install
synced 2025-07-03 18:43:33 +02:00
Add files via upload
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
# Version Numbers of Guacamole and MySQL Connection/J to download
|
||||
VERSION="0.9.12"
|
||||
MCJVERSION = "5.1.43"
|
||||
|
||||
SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")')
|
||||
|
||||
# Stop Tomcat
|
||||
@ -24,6 +27,12 @@ wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-auth-j
|
||||
tar -xzf guacamole-auth-jdbc-${VERSION}-incubating.tar.gz
|
||||
cp guacamole-auth-jdbc-${VERSION}-incubating/mysql/guacamole-auth-jdbc-mysql-${VERSION}-incubating.jar /etc/guacamole/extensions/
|
||||
|
||||
# Upgrade the MySQL Connector-J
|
||||
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-${MCJVERSION}.tar.gz
|
||||
tar -xzf mysql-connector-java-${MCJVERSION}.tar.gz
|
||||
cp mysql-connector-java-${MCJVERSION}/mysql-connector-java-${MCJVERSION}-bin.jar /etc/guacamole/lib/
|
||||
rm -rf mysql-connector-java-${MCJVERSION}*
|
||||
|
||||
# Check if there is an schema upgrade file, if there is run it (will prompt for password)
|
||||
if [ -f "guacamole-auth-jdbc-${VERSION}-incubating/mysql/schema/upgrade/upgrade-pre-${VERSION}.sql" ]
|
||||
then
|
||||
|
Reference in New Issue
Block a user