From 2161ea5ab6124aef65b080ec56d9ea6496a0f83d Mon Sep 17 00:00:00 2001 From: MysticEmpires Date: Thu, 3 Aug 2017 13:31:57 +0200 Subject: [PATCH] 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 --- docker-install.sh | 4 +++- guac-install-server.sh | 2 +- guac-install.sh | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docker-install.sh b/docker-install.sh index a7ae595..921bccf 100644 --- a/docker-install.sh +++ b/docker-install.sh @@ -4,11 +4,13 @@ VERSION="0.9.13" 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 +echo #Install Stuff 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 SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred|rtrimstr("/")') diff --git a/guac-install-server.sh b/guac-install-server.sh index c41b183..18fd99f 100644 --- a/guac-install-server.sh +++ b/guac-install-server.sh @@ -12,7 +12,7 @@ fi # Install Server Features 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 \ libvorbis-dev libwebp-dev jq curl wget diff --git a/guac-install.sh b/guac-install.sh index 27e4e35..579c390 100644 --- a/guac-install.sh +++ b/guac-install.sh @@ -21,11 +21,13 @@ fi # Grab a password for MySQL Root 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_again password $mysqlrootpassword" # Grab a password for Guacamole Database User Account 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... 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 # 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 \ libvorbis-dev libwebp-dev mysql-server mysql-client mysql-common mysql-utilities ${TOMCAT} freerdp ghostscript jq wget curl