1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2024-11-15 06:57:14 +01:00
guac-install/guac-upgrade.sh

35 lines
1.3 KiB
Bash
Raw Normal View History

2017-04-05 18:34:59 +02:00
VERSION="0.9.12"
SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")')
2017-02-04 04:19:36 +01:00
# Stop Tomcat
service tomcat8 stop
# Download and install Guacamole Server
wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/source/guacamole-server-${VERSION}-incubating.tar.gz
tar -xzf guacamole-server-${VERSION}-incubating.tar.gz
cd guacamole-server-${VERSION}-incubating
2017-02-04 04:19:36 +01:00
./configure --with-init-dir=/etc/init.d
make
make install
ldconfig
systemctl enable guacd
cd ..
# Download and replace Guacamole Client
wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-${VERSION}-incubating.war
2017-03-31 04:10:52 +02:00
mv guacamole-${VERSION}-incubating.war /etc/guacamole/guacamole.war
2017-02-04 04:19:36 +01:00
# Download and upgrade SQL components
wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-auth-jdbc-${VERSION}-incubating.tar.gz
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/
2017-02-04 04:19:36 +01:00
# Commented out this lines as there is no schema upgrade from 0.9.11 to 0.9.12
# mysql -u root -p guacamole_db < guacamole-auth-jdbc-${VERSION}-incubating/mysql/schema/upgrade/upgrade-pre-${VERSION}.sql
2017-02-04 04:19:36 +01:00
# Start Tomcat
service tomcat8 start
# Cleanup
rm -rf guacamole*