Skip to content

Commit

Permalink
delete leftovers
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 8621ce8 commit bc346e9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion network/geoblock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,17 @@ else
fi
# Remove Apache config
sed -i "/^#Geoip-block-start/,/^#Geoip-block-end/d" /etc/apache2/apache2.conf
if [ -f "$GEOBLOCK_MOD_CONF" ]
then
a2disconf geoblock
rm -f "$GEOBLOCK_MOD_CONF"
fi
# 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
rm -rf /usr/share/GeoIP
#rm -rf /usr/share/GeoIP keep these to save downloads...
check_command systemctl restart apache2
fi

Expand Down

0 comments on commit bc346e9

Please sign in to comment.