Skip to content

Commit

Permalink
fix script error
Browse files Browse the repository at this point in the history
  • Loading branch information
mchyzer committed Jul 3, 2023
1 parent d5635ab commit d77f7cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions container_files/usr-local-bin/librarySetupFilesTomcat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ setupFilesTomcat() {

setupFilesTomcat_remoteCidrValve() {

if [ -z "$GROUPER_TOMCAT_REMOTE_CIDR_VALVE_ALLOW" ]; then
else
if [ ! -z "$GROUPER_TOMCAT_REMOTE_CIDR_VALVE_ALLOW" ]; then
if [ $(grep -c '<!--GROUPER_REMOTE_CIDR_VALVE-->' /opt/tomcat/conf/server.xml) -ge 1 ]; then

sed -i 's|<!--GROUPER_REMOTE_CIDR_VALVE-->|<Valve className="org.apache.catalina.valves.RemoteCIDRValve" allow="__GROUPER_TOMCAT_REMOTE_CIDR_VALVE_ALLOW__"/>|g' /opt/tomcat/conf/server.xml
Expand Down

0 comments on commit d77f7cc

Please sign in to comment.