mirror of
https://git.koehlerweb.org/frodovdr/guac-install
synced 2025-07-03 15:53:33 +02:00
Remove GCC7 Hack
This commit is contained in:
@ -78,24 +78,9 @@ fi
|
||||
# Upgrade Guacamole Server
|
||||
tar -xzf guacamole-server-${GUACVERSION}.tar.gz
|
||||
cd guacamole-server-${GUACVERSION}
|
||||
|
||||
# Hack for gcc-7
|
||||
if [[ $(gcc --version | head -n1 | grep -oP '\)\K.*' | awk '{print $1}' | grep "^7" | wc -l) -gt 0 ]]
|
||||
then
|
||||
apt-get -y install gcc-6
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
echo "apt-get failed to install gcc-6"
|
||||
exit
|
||||
fi
|
||||
CC="gcc-6" ./configure --with-init-dir=/etc/init.d
|
||||
CC="gcc-6" make
|
||||
CC="gcc-6" make install
|
||||
else
|
||||
./configure --with-init-dir=/etc/init.d
|
||||
make
|
||||
make install
|
||||
fi
|
||||
./configure --with-init-dir=/etc/init.d
|
||||
make
|
||||
make install
|
||||
|
||||
ldconfig
|
||||
systemctl enable guacd
|
||||
|
Reference in New Issue
Block a user