1
0
mirror of https://github.com/MysticRyuujin/guac-install.git synced 2023-10-10 13:36:56 +02:00

Fixed /etc/guacamole/guacamole.properties (#83)

When running guac-install.sh several times, /etc/guacamole/guacamole.properties wit contain the credentials several times. For that the file will be removed and re-created afterwards.
This commit is contained in:
Jasper Michalke 2019-06-09 20:17:01 +02:00 committed by Chase Wright
parent 1a13bad832
commit cd866f807c

View File

@ -250,6 +250,8 @@ cp guacamole-auth-jdbc-${GUACVERSION}/mysql/guacamole-auth-jdbc-mysql-${GUACVERS
cp guacamole-auth-totp-${GUACVERSION}/guacamole-auth-totp-${GUACVERSION}.jar /etc/guacamole/extensions/
# Configure guacamole.properties
rm -f /etc/guacamole/guacamole.properties
touch /etc/guacamole/guacamole.properties
echo "mysql-hostname: localhost" >> /etc/guacamole/guacamole.properties
echo "mysql-port: 3306" >> /etc/guacamole/guacamole.properties
echo "mysql-database: ${DB}" >> /etc/guacamole/guacamole.properties