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/
* fixed typo
* fix typos; use mkdir -p
fix a couple of minor typos and some unnecessary caps; switch to mkdir -p (create parent directories) in Make Directories section to save one line and prevent errors if directories already exist
* switch from apt-get to apt; lose -qq for install
* fix typo
* 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
If the schema upgrade needs to happen then the file name would exist with the current version's name so it's easy enough to check for and run if necessary.