GUACAMOLE-713: Merge add support for changing Logback verbosity to Docker start script

This commit is contained in:
Virtually Nick
2019-01-27 16:53:18 -05:00
committed by GitHub

View File

@@ -647,6 +647,12 @@ if [ -n "$DUO_API_HOSTNAME" ]; then
associate_duo associate_duo
fi 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) # Finally start Guacamole (under Tomcat)
# #