GUACAMOLE-713: Add support for changing Logback verbosity to Docker start script 366/head
authorJoel Best <jbest@uoguelph.ca>
Wed, 23 Jan 2019 16:27:12 +0000 (11:27 -0500)
committerJoel Best <jbest@uoguelph.ca>
Wed, 23 Jan 2019 16:27:12 +0000 (11:27 -0500)
guacamole-docker/bin/start.sh

index 08bac3a..41f2eb7 100755 (executable)
@@ -643,6 +643,12 @@ if [ -n "$DUO_API_HOSTNAME" ]; then
     associate_duo
 fi
 
+# Set logback level if specified
+if [ -n "$LOGBACK_LEVEL" ]; then
+    unzip -o -j /opt/guacamole/guacamole.war WEB-INF/classes/logback.xml -d $GUACAMOLE_HOME
+    sed -i "s/level=\"info\"/level=\"$LOGBACK_LEVEL\"/" $GUACAMOLE_HOME/logback.xml
+fi
+
 #
 # Finally start Guacamole (under Tomcat)
 #