From 2761c6336370a5f1c7738f5c11472049be6e75fd Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Fri, 13 Sep 2024 18:12:01 +0200 Subject: [PATCH] update to correct name Signed-off-by: Daniel Hansson --- nextcloud_update.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nextcloud_update.sh b/nextcloud_update.sh index cebc6b4ff9..98ef76a99d 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -582,8 +582,14 @@ fi # Get newest dat files for geoblock.sh if grep -q "^#Geoip-block" /etc/apache2/apache2.conf then - get_newest_dat_files - check_command systemctl restart apache2 + if get_newest_dat_files + 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 + fi + check_command systemctl restart apache2 + fi fi # Update docker containers and remove Watchtower if Bitwarden is present due to compatibility issue