remove suricata log files @uninstall

This commit is contained in:
b068931cc450442b63f5b3d276ea4297 2024-01-17 12:33:59 +01:00
parent eb4112c912
commit 50f786dda4

View File

@ -26,6 +26,7 @@ delete_packages(){
read answer read answer
if [[ "$answer" =~ ^([yY][eE][sS]|[yY])$ ]] if [[ "$answer" =~ ^([yY][eE][sS]|[yY])$ ]]
then then
rm -rf /var/log/suricata
for pkg in "${pkgs[@]}" for pkg in "${pkgs[@]}"
do do
apt -y remove $pkg && apt -y purge $pkg apt -y remove $pkg && apt -y purge $pkg