Skip to content

Commit

Permalink
download latest GeoIP.dat no matter what (#2668)
Browse files Browse the repository at this point in the history
cc @szaimen

Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 committed Sep 15, 2024
1 parent 6af60eb commit 145534e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,13 @@ then
then
if grep -c GeoIP.dat /etc/apache2/apache2.conf
then
sed -i "s|GeoIPDBFile /usr/share/GeoIP/GeoIP.dat|GeoIPDBFile /usr/share/GeoIP/GeoIPv4.dat|g" /etc/apache2/apache2.conf
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
fi
fi
check_command systemctl restart apache2
fi
Expand Down

0 comments on commit 145534e

Please sign in to comment.