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

Update guac-install.sh

My friend, I'm sorry I made a little confusion in the code.

Then to the constant "SERVER" returns the serves of preference:

My case (remembering that I'm located in Brazil = P):

backup
0 "http://www-eu.apache.org/dist/"
1 "http://www-us.apache.org/dist/"
cca2 "br"
http
0 "http://ftp.unicamp.br/pub/apache/"
1 "http://mirror.nbtelecom.com.br/apache/"
path_info ""
preferred "http://ftp.unicamp.br/pub/apache/"

Then the moment the script concatenates:
SERVER + incubator / guacamole ....................
the URL is not found.

ie, to work on the servers of Brazil simply delete an FTP directory
  staying:

SERVER + / guacamole

Then two apologies I owe you:
I'm sorry for the distraction in such a simple thing. sorry my english for not being so good O/
This commit is contained in:
Álex Junio 2017-12-01 14:28:09 -02:00 committed by GitHub
parent 56f530942a
commit 352f667053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,10 +80,10 @@ echo "# GUACAMOLE ENV VARIABLE" >> /etc/default/${TOMCAT}
echo "GUACAMOLE_HOME=/etc/guacamole" >> /etc/default/${TOMCAT} echo "GUACAMOLE_HOME=/etc/guacamole" >> /etc/default/${TOMCAT}
# Set SERVER to be the preferred download server from the Apache CDN # Set SERVER to be the preferred download server from the Apache CDN
SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?action=download&filename=guacamole' | jq --raw-output '.preferred|rtrimstr("/")') SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")')
# Download Guacamole Server # Download Guacamole Server
wget ${SERVER}${VERSION}-incubating/source/guacamole-server-${VERSION}-incubating.tar.gz wget ${SERVER}/guacamole/${VERSION}-incubating/source/guacamole-server-${VERSION}-incubating.tar.gz
if [ ! -f ./guacamole-server-${VERSION}-incubating.tar.gz ]; then if [ ! -f ./guacamole-server-${VERSION}-incubating.tar.gz ]; then
echo "Failed to download guacamole-server-${VERSION}-incubating.tar.gz" echo "Failed to download guacamole-server-${VERSION}-incubating.tar.gz"
echo "${SERVER}/incubator/guacamole/${VERSION}-incubating/source/guacamole-server-${VERSION}-incubating.tar.gz" echo "${SERVER}/incubator/guacamole/${VERSION}-incubating/source/guacamole-server-${VERSION}-incubating.tar.gz"
@ -91,7 +91,7 @@ if [ ! -f ./guacamole-server-${VERSION}-incubating.tar.gz ]; then
fi fi
# Download Guacamole Client # Download Guacamole Client
wget ${SERVER}${VERSION}-incubating/binary/guacamole-${VERSION}-incubating.war wget ${SERVER}/guacamole/${VERSION}-incubating/binary/guacamole-${VERSION}-incubating.war
if [ ! -f ./guacamole-${VERSION}-incubating.war ]; then if [ ! -f ./guacamole-${VERSION}-incubating.war ]; then
echo "Failed to download guacamole-${VERSION}-incubating.war" echo "Failed to download guacamole-${VERSION}-incubating.war"
echo "${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-${VERSION}-incubating.war" echo "${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-${VERSION}-incubating.war"
@ -99,7 +99,7 @@ if [ ! -f ./guacamole-${VERSION}-incubating.war ]; then
fi fi
# Download Guacamole authentication extensions # Download Guacamole authentication extensions
wget ${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-auth-jdbc-${VERSION}-incubating.tar.gz wget ${SERVER}/guacamole/${VERSION}-incubating/binary/guacamole-auth-jdbc-${VERSION}-incubating.tar.gz
if [ ! -f ./guacamole-auth-jdbc-${VERSION}-incubating.tar.gz ]; then if [ ! -f ./guacamole-auth-jdbc-${VERSION}-incubating.tar.gz ]; then
echo "Failed to download guacamole-auth-jdbc-${VERSION}-incubating.tar.gz" echo "Failed to download guacamole-auth-jdbc-${VERSION}-incubating.tar.gz"
echo "${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-auth-jdbc-${VERSION}-incubating.tar.gz" echo "${SERVER}/incubator/guacamole/${VERSION}-incubating/binary/guacamole-auth-jdbc-${VERSION}-incubating.tar.gz"