Skip to content

Commit

Permalink
check for new config
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
  • Loading branch information
enoch85 authored Sep 19, 2024
1 parent fec5ff5 commit f4a15e8
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -579,23 +579,23 @@ then
mv "$ADMINERDIR"/adminer-pgsql.php "$ADMINERDIR"/adminer.php
fi

# Get newest dat files for geoblock.sh
# Get latest Maxmind databse for Geoblock
if grep -q "^#Geoip-block" /etc/apache2/apache2.conf
then
if grep -c GeoIPDBFile /etc/apache2/apache2.conf
then
msg_box "We have updated GeoIP to a new version which isn't compatible with the old one. Please reinstall with the menu script to get the latest version."
msg_box "We have updated GeoBlock to a new version which isn't compatible with the old one. Please reinstall with the menu script to get the latest version."
notify_admin_gui \
"GeoBlock needs to be reinstalled!" \
"We have updated GeoIP to a new version which isn't compatible with the old one.
"We have updated GeoBlock to a new version which isn't compatible with the old one.
Please reinstall with the menu script to get the latest version.
sudo bash /ar/scripts/menu.sh --> Server Configuration --> GeoBlock"
else
if download_geoip_mmdb
then
check_command systemctl restart apache2
fi
fi
elif [ -f "$GEOBLOCK_MOD" ]
if download_geoip_mmdb
then
print_text_in_color "IGreen" "MaxMind database updated!"
fi
fi

Expand Down

0 comments on commit f4a15e8

Please sign in to comment.