From d77f7cc7bf0a45437faa6885048a65c08b54e7a2 Mon Sep 17 00:00:00 2001 From: mchyzer Date: Mon, 3 Jul 2023 04:11:08 -0400 Subject: [PATCH] fix script error --- container_files/usr-local-bin/librarySetupFilesTomcat.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/container_files/usr-local-bin/librarySetupFilesTomcat.sh b/container_files/usr-local-bin/librarySetupFilesTomcat.sh index 382c986..2515417 100644 --- a/container_files/usr-local-bin/librarySetupFilesTomcat.sh +++ b/container_files/usr-local-bin/librarySetupFilesTomcat.sh @@ -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 '' /opt/tomcat/conf/server.xml) -ge 1 ]; then sed -i 's|||g' /opt/tomcat/conf/server.xml