1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2025-07-06 18:23:34 +02:00

Add Non-Interactive Option (#37)

Thanks to @bigredthelogger for providing the initial code

* Add Non-Interactive Option to Installer

* Update README for Non-Interactive Options

* Add Non-Interactive Option to Upgrade
This commit is contained in:
Chase Wright
2018-03-09 15:51:48 -06:00
committed by GitHub
parent a3375c6805
commit 9a6da88418
3 changed files with 94 additions and 41 deletions

View File

@ -5,20 +5,30 @@ Run script, enter MySQL Root Password and Guacamole User password. Guacamole Use
The script attempts to install tomcat8 if the available version is 8.5.x or newer, if tomcat8 is only 8.0.x it will fall back to tomcat7. If you want to manually specify a tomcat version there's a commented out line you can modify at line #73. Have at it.
How to Run:
## How to Run:
Download file directly from here:
### Download file directly from here:
<code>wget https://raw.githubusercontent.com/MysticRyuujin/guac-install/master/guac-install.sh</code>
Make it executable:
### Make it executable:
<code>chmod +x guac-install.sh</code>
Run it as root:
### Run it as root:
Interactive (asks for passwords):
<code>./guac-install.sh</code>
Non-Interactive (passwords provided via cli):
<code>./guac-install.sh --mysqlpwd password --guacpwd password</code>
OR
<code>./guac-install.sh -m password -g password</code>
Once installation is done you can access guacamole by browsing to: http://<host_or_ip>:8080/guacamole/
The default credentials are guacadmin as both username and password. Please change them or disable guacadmin after install!
@ -27,16 +37,22 @@ Script for upgrading currently installed Guacamole instance (previously installe
If looks for the tomcat folder in /etc/ (E.G. `/etc/tomcat7` or `/etc/tomcat8`) hopefully that works to identify the correct tomcat version/path :smile: I'm open to suggestions/pull requests for a cleaner method.
How to Run:
## How to Run:
Download file directly from here:
### Download file directly from here:
<code>wget https://raw.githubusercontent.com/MysticRyuujin/guac-install/master/guac-upgrade.sh</code>
Make it executable:
### Make it executable:
<code>chmod +x guac-upgrade.sh</code>
Run it as root:
### Run it as root:
Interactive (asks for passwords):
<code>./guac-upgrade.sh</code>
Non-Interactive (password provided via cli):
<code>./guac-upgrade.sh --mysqlpwd password</code>