Skip to content

Commit

Permalink
always get latest dat file
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 authored Sep 17, 2024
1 parent 145534e commit ba94940
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -584,14 +584,15 @@ if grep -q "^#Geoip-block" /etc/apache2/apache2.conf
then
if get_newest_dat_files
then
# TEMP FIX
download_geoip_dat 4 v4
## END TEMP FIX
if grep -c GeoIP.dat /etc/apache2/apache2.conf
then
if [ ! -f /usr/share/GeoIP/GeoIPv4.dat ]
then
if download_geoip_dat 4 v4
then
sed -i "s|GeoIPDBFile /usr/share/GeoIP/GeoIP.dat|GeoIPDBFile /usr/share/GeoIP/GeoIPv4.dat|g" /etc/apache2/apache2.conf
fi
# download_geoip_dat 4 v4
sed -i "s|GeoIPDBFile /usr/share/GeoIP/GeoIP.dat|GeoIPDBFile /usr/share/GeoIP/GeoIPv4.dat|g" /etc/apache2/apache2.conf
fi
fi
check_command systemctl restart apache2
Expand Down

0 comments on commit ba94940

Please sign in to comment.