From 3312eccba7a9948b09416da5d9a28d6b7a668abe Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 5 Mar 2022 17:07:37 +0000 Subject: [PATCH] Fixed the issue where the CAT to EOF command would error with a Premission Denied --- Add-IP2Location-Mod-Apache2.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Add-IP2Location-Mod-Apache2.sh b/Add-IP2Location-Mod-Apache2.sh index 4465705..a17de3e 100644 --- a/Add-IP2Location-Mod-Apache2.sh +++ b/Add-IP2Location-Mod-Apache2.sh @@ -34,19 +34,19 @@ sudo chmod 760 -R /opt/IP2Location wget "https://cdn-edge-r2.ncltech.com/ipdb/ip2location/IP2LOCATION-LITE-DB1.BIN" -O "/opt/IP2Location/IP2LOCATION-LITE-DB1.BIN" ## Echo "mod_ip2location.c" into apache2.conf file -sudo cat >>/etc/apache2/apache2.conf<>/etc/apache2/apache2.conf< IP2LocationEnable On IP2LocationDetectProxy On IP2LocationSetmode ALL IP2LocationDBFile /opt/IP2Location/IP2LOCATION-LITE-DB1.BIN -EOF +EOF' ## Create cron task to grab DB file from cdn-edge-r2.ncltech.com -sudo cat >> /etc/crontab<> /etc/crontab<