1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2024-11-23 01:37:13 +01:00

Added a check to exit script if apt-get fails

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...
This commit is contained in:
Chase Wright 2017-01-03 09:02:12 -06:00 committed by GitHub
parent 23df3c91e1
commit d1933dbae0

View File

@ -10,6 +10,11 @@ read -s -p "Enter the password that will be used for the Guacamole database: " g
# Install Features
apt-get -y install libcairo2-dev libjpeg-turbo8-dev 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 tomcat8 freerdp ghostscript jq wget curl
if [ $? != 0 ]
then
echo "apt-get failed to install all required dependencies. Are you on Ubuntu 16.04.01 LTS?"
exit
fi
# Add GUACAMOLE_HOME to Tomcat8 ENV
echo "" >> /etc/default/tomcat8