mirror of
https://github.com/MysticRyuujin/guac-install.git
synced 2023-10-10 13:36:56 +02:00
parent
8260cdda51
commit
169058d029
@ -41,17 +41,6 @@ then
|
|||||||
exit
|
exit
|
||||||
fi
|
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
|
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
echo "apt-get failed to install gcc-6"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set SERVER to be the preferred download server from the Apache CDN
|
# Set SERVER to be the preferred download server from the Apache CDN
|
||||||
SERVER="http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/${GUACVERSION}"
|
SERVER="http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/${GUACVERSION}"
|
||||||
|
|
||||||
@ -71,9 +60,25 @@ mkdir /etc/guacamole
|
|||||||
|
|
||||||
# Install guacd
|
# Install guacd
|
||||||
cd guacamole-server-${GUACVERSION}
|
cd guacamole-server-${GUACVERSION}
|
||||||
CC="gcc-6" ./configure --with-init-dir=/etc/init.d
|
|
||||||
CC="gcc-6" make
|
# Hack for gcc7
|
||||||
CC="gcc-6" make install
|
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
|
||||||
|
|
||||||
ldconfig
|
ldconfig
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
@ -104,17 +104,6 @@ if [ $? -ne 0 ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
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
|
|
||||||
if [ $? -ne 0 ]
|
|
||||||
then
|
|
||||||
echo "apt-get failed to install gcc-6"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Set SERVER to be the preferred download server from the Apache CDN
|
# Set SERVER to be the preferred download server from the Apache CDN
|
||||||
SERVER="http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/${GUACVERSION}"
|
SERVER="http://apache.org/dyn/closer.cgi?action=download&filename=guacamole/${GUACVERSION}"
|
||||||
|
|
||||||
@ -150,11 +139,27 @@ tar -xzf guacamole-auth-jdbc-${GUACVERSION}.tar.gz
|
|||||||
mkdir -p /etc/guacamole/lib
|
mkdir -p /etc/guacamole/lib
|
||||||
mkdir -p /etc/guacamole/extensions
|
mkdir -p /etc/guacamole/extensions
|
||||||
|
|
||||||
# Install guacd # Hack for gcc7 #
|
# Install guacd
|
||||||
cd guacamole-server-${GUACVERSION}
|
cd guacamole-server-${GUACVERSION}
|
||||||
CC="gcc-6" ./configure --with-init-dir=/etc/init.d
|
|
||||||
CC="gcc-6" make
|
# Hack for gcc7
|
||||||
CC="gcc-6" make install
|
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
|
||||||
|
|
||||||
ldconfig
|
ldconfig
|
||||||
systemctl enable guacd
|
systemctl enable guacd
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -72,18 +72,28 @@ if [ $? -ne 0 ]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
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
|
# Upgrade Guacamole Server
|
||||||
tar -xzf guacamole-server-${GUACVERSION}.tar.gz
|
tar -xzf guacamole-server-${GUACVERSION}.tar.gz
|
||||||
cd guacamole-server-${GUACVERSION}
|
cd guacamole-server-${GUACVERSION}
|
||||||
CC="gcc-6" ./configure --with-init-dir=/etc/init.d
|
|
||||||
CC="gcc-6" make
|
# Hack for gcc-7
|
||||||
CC="gcc-6" make install
|
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
|
||||||
|
|
||||||
ldconfig
|
ldconfig
|
||||||
systemctl enable guacd
|
systemctl enable guacd
|
||||||
cd ..
|
cd ..
|
||||||
|
Loading…
Reference in New Issue
Block a user