From d91bfc9c9c231b80e87e5e5da94012d4ed4947db Mon Sep 17 00:00:00 2001 From: Giacomo Longo Date: Sat, 6 Mar 2021 22:08:49 +0100 Subject: [PATCH] GUACAMOLE-1005: Docker, correct RemoteIPValve configuration file path --- guacamole-docker/bin/start.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/guacamole-docker/bin/start.sh b/guacamole-docker/bin/start.sh index fd84c0915..9f5008013 100755 --- a/guacamole-docker/bin/start.sh +++ b/guacamole-docker/bin/start.sh @@ -742,7 +742,7 @@ enable_remote_ip_valve() { ${GUACAMOLE_PROXY_BY_HEADER:+remoteIpProxiesHeader=\"$GUACAMOLE_PROXY_BY_HEADER\"} \ ${GUACAMOLE_PROXY_PROTOCOL_HEADER:+protocolHeader=\"$GUACAMOLE_PROXY_PROTOCOL_HEADER\"} \ />\n\1|" \ - /usr/local/tomcat/conf/server.xml + $CATALINA_BASE/conf/server.xml } ## @@ -759,6 +759,11 @@ start_guacamole() { done cp -R /usr/local/tomcat/conf $CATALINA_BASE + # Set up Tomcat RemoteIPValve + if [ "$REMOTE_IP_VALVE_ENABLED" = "true" ]; then + enable_remote_ip_valve + fi + # Install webapp ln -sf /opt/guacamole/guacamole.war $CATALINA_BASE/webapps/${WEBAPP_CONTEXT:-guacamole}.war @@ -830,11 +835,6 @@ fi set_property "guacd-hostname" "$GUACD_HOSTNAME" set_property "guacd-port" "$GUACD_PORT" -# Set up Tomcat RemoteIPValve -if [ "$REMOTE_IP_VALVE_ENABLED" = "true" ]; then - enable_remote_ip_valve -fi - # # Track which authentication backends are installed #