mirror of
https://github.com/MysticRyuujin/guac-install.git
synced 2023-10-10 13:36:56 +02:00
Variable Updates
This commit is contained in:
parent
8b6519fa01
commit
d60ce6f219
@ -3,16 +3,26 @@
|
|||||||
VERSION="0.9.13"
|
VERSION="0.9.13"
|
||||||
|
|
||||||
# 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
|
||||||
JPEGTURBO="libjpeg62-turbo-dev"
|
JPEGTURBO="libjpeg62-turbo-dev"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Ubuntu 16.10 has a different name for libpng12-dev for some reason...
|
||||||
|
if [ $DISTRIB_RELEASE == "16.10" ]
|
||||||
|
then
|
||||||
|
LIBPNG="libpng-dev"
|
||||||
|
else
|
||||||
|
LIBPNG="libpng12-dev"
|
||||||
|
fi
|
||||||
|
|
||||||
# Install Server Features
|
# Install Server Features
|
||||||
apt update
|
apt update
|
||||||
apt -y install build-essential libcairo2-dev $JPEGTURBO libpng12-dev libossp-uuid-dev libavcodec-dev libavutil-dev \
|
apt -y install build-essential libcairo2-dev ${JPEGTURBO} ${LIBPNG} 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
|
||||||
|
|
||||||
@ -23,6 +33,7 @@ then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set SERVER to be the preferred download server from the Apache CDN
|
||||||
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("/")')
|
||||||
|
|
||||||
# Download Guacamole Files
|
# Download Guacamole Files
|
||||||
|
Loading…
Reference in New Issue
Block a user