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

This commit is contained in:
Joel Best
2019-01-23 11:27:12 -05:00
parent a1870bcb81
commit 989d7c9602

View File

@@ -643,6 +643,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)
# #