mirror of
				https://git.koehlerweb.org/frodovdr/guac-install
				synced 2025-10-31 17:26:41 +01:00 
			
		
		
		
	silent install and cosmetic change (#15)
* add -qq for silent install * add -qq for silent install * newline after passwort question * add newline after password question also add -qq -y on apt install * Update guac-install.sh
This commit is contained in:
		
				
					committed by
					
						 Chase Wright
						Chase Wright
					
				
			
			
				
	
			
			
			
						parent
						
							948c43c9c3
						
					
				
				
					commit
					2161ea5ab6
				
			| @@ -4,11 +4,13 @@ | |||||||
| VERSION="0.9.13" | VERSION="0.9.13" | ||||||
|  |  | ||||||
| read -s -p "Enter the password that will be used for MySQL Root: " MYSQLROOTPASSWORD | read -s -p "Enter the password that will be used for MySQL Root: " MYSQLROOTPASSWORD | ||||||
|  | echo | ||||||
| read -s -p "Enter the password that will be used for the Guacamole database: " GUACDBUSERPASSWORD | read -s -p "Enter the password that will be used for the Guacamole database: " GUACDBUSERPASSWORD | ||||||
|  | echo | ||||||
|  |  | ||||||
| #Install Stuff | #Install Stuff | ||||||
| apt-get update | apt-get update | ||||||
| apt-get install docker.io mysql-client wget jq curl | apt-get -qq -y install docker.io mysql-client wget jq curl | ||||||
|  |  | ||||||
| # Get perfered download server | # Get perfered download server | ||||||
| SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') | SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') | ||||||
|   | |||||||
| @@ -12,7 +12,7 @@ fi | |||||||
|  |  | ||||||
| # Install Server Features | # Install Server Features | ||||||
| apt-get update | apt-get update | ||||||
| apt-get -y install build-essential libcairo2-dev $JPEGTURBO libpng12-dev libossp-uuid-dev libavcodec-dev libavutil-dev \ | apt-get -qq -y install build-essential libcairo2-dev $JPEGTURBO libpng12-dev libossp-uuid-dev libavcodec-dev libavutil-dev \ | ||||||
| libswscale-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev \ | libswscale-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev \ | ||||||
| libvorbis-dev libwebp-dev jq curl wget | libvorbis-dev libwebp-dev jq curl wget | ||||||
|  |  | ||||||
|   | |||||||
| @@ -21,11 +21,13 @@ fi | |||||||
|  |  | ||||||
| # Grab a password for MySQL Root | # Grab a password for MySQL Root | ||||||
| read -s -p "Enter the password that will be used for MySQL Root: " mysqlrootpassword | read -s -p "Enter the password that will be used for MySQL Root: " mysqlrootpassword | ||||||
|  | echo | ||||||
| debconf-set-selections <<< "mysql-server mysql-server/root_password password $mysqlrootpassword" | debconf-set-selections <<< "mysql-server mysql-server/root_password password $mysqlrootpassword" | ||||||
| debconf-set-selections <<< "mysql-server mysql-server/root_password_again password $mysqlrootpassword" | debconf-set-selections <<< "mysql-server mysql-server/root_password_again password $mysqlrootpassword" | ||||||
|  |  | ||||||
| # Grab a password for Guacamole Database User Account | # Grab a password for Guacamole Database User Account | ||||||
| read -s -p "Enter the password that will be used for the Guacamole database: " guacdbuserpassword | read -s -p "Enter the password that will be used for the Guacamole database: " guacdbuserpassword | ||||||
|  | echo | ||||||
|  |  | ||||||
| # Ubuntu and Debian have different names of the libjpeg-turbo library for some reason... | # Ubuntu and Debian have different names of the libjpeg-turbo library for some reason... | ||||||
| if [ `egrep -c "ID=ubuntu" /etc/os-release` -gt 0 ] | if [ `egrep -c "ID=ubuntu" /etc/os-release` -gt 0 ] | ||||||
| @@ -39,7 +41,7 @@ fi | |||||||
| if [ $(getconf LONG_BIT | grep 64) ]; then ARCH="x86_64";  else ARCH="i386"; fi | if [ $(getconf LONG_BIT | grep 64) ]; then ARCH="x86_64";  else ARCH="i386"; fi | ||||||
|  |  | ||||||
| # Install Features | # Install Features | ||||||
| apt-get -y install build-essential libcairo2-dev ${JPEGTURBO} libpng12-dev libossp-uuid-dev libavcodec-dev libavutil-dev \ | apt-get -qq -y install build-essential libcairo2-dev ${JPEGTURBO} libpng12-dev libossp-uuid-dev libavcodec-dev libavutil-dev \ | ||||||
| libswscale-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev \ | libswscale-dev libfreerdp-dev libpango1.0-dev libssh2-1-dev libtelnet-dev libvncserver-dev libpulse-dev libssl-dev \ | ||||||
| libvorbis-dev libwebp-dev mysql-server mysql-client mysql-common mysql-utilities ${TOMCAT} freerdp ghostscript jq wget curl | libvorbis-dev libwebp-dev mysql-server mysql-client mysql-common mysql-utilities ${TOMCAT} freerdp ghostscript jq wget curl | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user