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
I split apt-get into multiple lines so it wasn't just one long line across the screen.
I also split the SQL database creation by converting it to a multi-line variable
Added more comments
If apt-get fails, likely due to missing dependencies or differing names outside of Ubuntu 16.04.01 LTS official sources, we should just exit and inform the user, no need to keep going...