1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2025-07-03 16:03:33 +02:00

Tomcat Variable (#13)

* Tomcat Variable

I don't know a good way to know which tomcat version is already running, and of course someone could theoretically run more than one...so the upgrade script is just a variable but the install script will check apt-cache and try to install tomcat8, then tomcat7, then tomcat6...

* Optional commented line

Added a commented out line in case someone wants to force an older/specific tomcat install
This commit is contained in:
Chase Wright
2017-08-02 06:24:36 -05:00
committed by GitHub
parent 249da0ba33
commit 8dc1cce78b
2 changed files with 31 additions and 15 deletions

View File

@ -4,10 +4,13 @@
VERSION="0.9.13"
MCJVERSION="5.1.43"
# I'm assuming tomcat8, you can change it here...
TOMCAT="tomcat8"
SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")')
# Stop Tomcat
service tomcat8 stop
service ${TOMCAT} stop
# Download and install Guacamole Server
wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/source/guacamole-server-${VERSION}-incubating.tar.gz
@ -42,7 +45,7 @@ then
fi
# Start Tomcat
service tomcat8 start
service ${TOMCAT} start
# Cleanup
rm -rf guacamole*