mirror of
https://github.com/MysticRyuujin/guac-install.git
synced 2023-10-10 13:36:56 +02:00
Variable separation
Made variables into ${} for clearer separation
This commit is contained in:
parent
c85c0a7784
commit
e8571f50b7
@ -5,9 +5,9 @@ SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-ou
|
||||
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
|
||||
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
|
||||
./configure --with-init-dir=/etc/init.d
|
||||
make
|
||||
make install
|
||||
@ -16,15 +16,15 @@ systemctl enable guacd
|
||||
cd ..
|
||||
|
||||
# Download and replace Guacamole Client
|
||||
wget $SERVER/incubator/guacamole/$VERSION-incubating/binary/guacamole-$VERSION-incubating.war
|
||||
wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-${VERSION}-incubating.war
|
||||
mv guacamole-0.9.11-incubating.war /etc/guacamole/guacamole.war
|
||||
|
||||
# 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/
|
||||
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/
|
||||
|
||||
mysql -u root -p guacamole_db < guacamole-auth-jdbc-$VERSION-incubating/mysql/schema/upgrade/upgrade-pre-$VERSION.sql
|
||||
mysql -u root -p guacamole_db < guacamole-auth-jdbc-${VERSION}-incubating/mysql/schema/upgrade/upgrade-pre-${VERSION}.sql
|
||||
|
||||
# Start Tomcat
|
||||
service tomcat8 start
|
||||
|
Loading…
Reference in New Issue
Block a user