1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2025-07-03 16:13:32 +02:00

Fix gcc-7 & Update Docker (#38)

* Force guacd compile with gcc-6 to resolve gcc-7 compile issues

* Update docker version
This commit is contained in:
Chase Wright
2018-03-12 16:44:55 -05:00
committed by GitHub
parent 9a6da88418
commit baac552de0
4 changed files with 127 additions and 66 deletions

View File

@ -72,12 +72,18 @@ if [ $? -ne 0 ]; then
exit
fi
# Hack for gcc7
if [[ $(gcc --version | head -n1 | grep -oP '\)\K.*' | awk '{print $1}' | grep "^7" | wc -l) -gt 0 ]]
then
apt-get -y install gcc-6
fi
# Upgrade Guacamole Server
tar -xzf guacamole-server-${GUACVERSION}.tar.gz
cd guacamole-server-${GUACVERSION}
./configure --with-init-dir=/etc/init.d
make
make install
CC="gcc-6" ./configure --with-init-dir=/etc/init.d
CC="gcc-6" make
CC="gcc-6" make install
ldconfig
systemctl enable guacd
cd ..