From e151983a73f3cb7edc4aeb10137409b41d98a922 Mon Sep 17 00:00:00 2001 From: Tyron Date: Wed, 5 Apr 2017 12:12:34 -0400 Subject: [PATCH] grab SERVER after package install Update to grab SERVER value after jq package is installed from repo --- guac-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guac-install.sh b/guac-install.sh index 08dd747..3138fc4 100644 --- a/guac-install.sh +++ b/guac-install.sh @@ -1,7 +1,6 @@ #!/bin/bash VERSION="0.9.11" -SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') # Grab a password for MySQL Root read -s -p "Enter the password that will be used for MySQL Root: " mysqlrootpassword @@ -24,6 +23,8 @@ then exit fi +SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') + # Add GUACAMOLE_HOME to Tomcat8 ENV echo "" >> /etc/default/tomcat8 echo "# GUACAMOLE EVN VARIABLE" >> /etc/default/tomcat8