From cd866f807c7d051048812495af336242661cb624 Mon Sep 17 00:00:00 2001 From: Jasper Michalke Date: Sun, 9 Jun 2019 20:17:01 +0200 Subject: [PATCH] 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. --- guac-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guac-install.sh b/guac-install.sh index 06cc49d..928a2b5 100644 --- a/guac-install.sh +++ b/guac-install.sh @@ -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