1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2024-11-23 01:37:13 +01:00

Reorder apt-get & SERVER

The SERVER variable requires curl and jq to be installed but it was being set before the apt-get install
This commit is contained in:
Chase Wright 2017-07-23 20:42:16 -05:00 committed by GitHub
parent 169ab6d302
commit 54a62c5cf2

View File

@ -2,7 +2,6 @@
# WORKING ON UBUNTU 16.04 LTS # WORKING ON UBUNTU 16.04 LTS
VERSION="0.9.12" VERSION="0.9.12"
SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")')
read -s -p "Enter the password that will be used for MySQL Root: " MYSQLROOTPASSWORD read -s -p "Enter the password that will be used for MySQL Root: " MYSQLROOTPASSWORD
read -s -p "Enter the password that will be used for the Guacamole database: " GUACDBUSERPASSWORD read -s -p "Enter the password that will be used for the Guacamole database: " GUACDBUSERPASSWORD
@ -11,6 +10,9 @@ read -s -p "Enter the password that will be used for the Guacamole database: " G
apt-get update apt-get update
apt-get install docker.io mysql-client wget jq curl apt-get install docker.io mysql-client wget jq curl
# Get perfered download server
SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")')
# Download the guacamole auth files for MySQL # Download the guacamole auth files for MySQL
wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-auth-jdbc-${VERSION}-incubating.tar.gz wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-auth-jdbc-${VERSION}-incubating.tar.gz
tar -xzf guacamole-auth-jdbc-${VERSION}-incubating.tar.gz tar -xzf guacamole-auth-jdbc-${VERSION}-incubating.tar.gz