mirror of
https://github.com/MysticRyuujin/guac-install.git
synced 2023-10-10 13:36:56 +02:00
Remove Tomcat8 & Modify Dep Checks
This commit is contained in:
parent
95b8374745
commit
b5ba64a6c0
@ -7,10 +7,8 @@ MCJVERSION="5.1.43"
|
|||||||
# Update apt so we can search apt-cache for newest tomcat version supported
|
# Update apt so we can search apt-cache for newest tomcat version supported
|
||||||
apt update
|
apt update
|
||||||
|
|
||||||
# tomcat8 is newest, tomcat7 and tomcat6 should work too
|
# tomcat8 seems to be broken, tomcat7 and tomcat6 should work
|
||||||
if [ $(apt-cache search "^tomcat8$" | wc -l) -gt 0 ]; then
|
if [ $(apt-cache search "^tomcat7$" | wc -l) -gt 0 ]; then
|
||||||
TOMCAT="tomcat8"
|
|
||||||
elif [ $(apt-cache search "^tomcat7$" | wc -l) -gt 0 ]; then
|
|
||||||
TOMCAT="tomcat7"
|
TOMCAT="tomcat7"
|
||||||
else
|
else
|
||||||
TOMCAT="tomcat6"
|
TOMCAT="tomcat6"
|
||||||
@ -30,7 +28,9 @@ read -s -p "Enter the password that will be used for the Guacamole database: " g
|
|||||||
echo
|
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 ]
|
source /etc/lsb-release
|
||||||
|
|
||||||
|
if [ $DISTRIB_ID == "Ubuntu" ]
|
||||||
then
|
then
|
||||||
JPEGTURBO="libjpeg-turbo8-dev"
|
JPEGTURBO="libjpeg-turbo8-dev"
|
||||||
else
|
else
|
||||||
@ -38,7 +38,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Ubuntu 16.10 has a different name for libpng12-dev for some reason...
|
# Ubuntu 16.10 has a different name for libpng12-dev for some reason...
|
||||||
if [ `egrep -c 'VERSION="16.10' /etc/os-release` -gt 0 ]
|
if [ $DISTRIB_RELEASE == "16.10" ]
|
||||||
then
|
then
|
||||||
LIBPNG="libpng-dev"
|
LIBPNG="libpng-dev"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user