Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion network/geoblock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ 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 \
"*.dat" -delete
# Remove Apache2 mod
if [ -f "$GEOBLOCK_MOD" ]
then
Expand Down Expand Up @@ -69,7 +71,6 @@ else
# Make sure it's clean from unused packages and files
apt purge libmaxminddb0* libmaxminddb-dev* mmdb-bin* apache2-dev* -y
apt autoremove -y
#rm -rf /usr/share/GeoIP keep these to save downloads...
check_command systemctl restart apache2
fi

Expand All @@ -82,6 +83,7 @@ fi
##### GeoIP script (Apache Setup)
# Install requirements
yes | add-apt-repository ppa:maxmind/ppa
apt-get update -q4 & spinner_loading
install_if_not libmaxminddb0
install_if_not libmaxminddb-dev
install_if_not mmdb-bin
Expand Down