Skip to content

Commit

Permalink
Make use of the new var
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 authored Sep 22, 2024
1 parent cb555a4 commit ac3d71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions network/geoblock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ else
# Remove old database files
find /var/scripts -type f -regex \
"$SCRIPTS/202[0-9]-[01][0-9]-Maxmind-Country-IPv[46]\.dat" -delete
find /usr/share/GeoIP -type f -regex \
find "$GEOBLOCK_DIR" -type f -regex \
"*.dat" -delete
# Remove Apache2 mod
if [ -f "$GEOBLOCK_MOD" ]
Expand Down Expand Up @@ -221,7 +221,7 @@ fi
cat << GEOBLOCKCONF_CREATE > "$GEOBLOCK_MOD_CONF"
<IfModule mod_maxminddb.c>
MaxMindDBEnable On
MaxMindDBFile DB /usr/share/GeoIP/GeoLite2-Country.mmdb
MaxMindDBFile DB $GEOBLOCK_DIR/GeoLite2-Country.mmdb
MaxMindDBEnv MM_CONTINENT_CODE DB/continent/code
MaxMindDBEnv MM_COUNTRY_CODE DB/country/iso_code
Expand Down

0 comments on commit ac3d71e

Please sign in to comment.