Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 authored Sep 22, 2024
1 parent f030a55 commit 07f5bd0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions network/geoblock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ 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 "$GEOBLOCK_DIR" -type f -regex \
find "$GEOBLOCK_DIR" -type f -regex \
"*.dat" -delete
rm -f "$GEOBLOCK_DIR"/IPInfo-Country.mmdb
# Remove Apache2 mod
if [ -f "$GEOBLOCK_MOD" ]
then
Expand Down Expand Up @@ -69,8 +70,8 @@ find "$GEOBLOCK_DIR" -type f -regex \
# Show successful uninstall if applicable
removal_popup "$SCRIPT_NAME"
# Make sure it's clean from unused packages and files
apt purge libmaxminddb0* libmaxminddb-dev* mmdb-bin* apache2-dev* -y
apt autoremove -y
apt-get purge libmaxminddb0* libmaxminddb-dev* mmdb-bin* apache2-dev* -y
apt-get autoremove -y
check_command systemctl restart apache2
fi

Expand Down

0 comments on commit 07f5bd0

Please sign in to comment.