summaryrefslogtreecommitdiff
path: root/debian/vyos-1x.postinst
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-22 09:00:09 +0200
committerChristian Poessinger <christian@poessinger.com>2022-07-22 23:16:13 +0200
commit4c0cb7f30dc85c19eb564e45643ce048ae69a01b (patch)
tree52b5144721ceb322d422d0688eadf883e53e6729 /debian/vyos-1x.postinst
parent929915b573825baa823cc31f4d78358617b07ff9 (diff)
downloadvyos-1x-4c0cb7f30dc85c19eb564e45643ce048ae69a01b.tar.gz
vyos-1x-4c0cb7f30dc85c19eb564e45643ce048ae69a01b.zip
fastnetmon: T2659: also clean /etc/networks_whitelist
Diffstat (limited to 'debian/vyos-1x.postinst')
-rw-r--r--debian/vyos-1x.postinst9
1 files changed, 5 insertions, 4 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index 81121bfe9..2b465d9b4 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -91,10 +91,11 @@ fi
# pmacct
# fastnetmon
DELETE="/etc/logrotate.d/conntrackd.distrib /etc/init.d/conntrackd /etc/default/conntrackd
- /etc/default/pmacctd /etc/pmacct /etc/networks_list /etc/fastnetmon.conf"
-for file in $DELETE; do
- if [ -f ${file} ]; then
- rm -f ${file}
+ /etc/default/pmacctd /etc/pmacct
+ /etc/networks_list /etc/networks_whitelist /etc/fastnetmon.conf"
+for tmp in $DELETE; do
+ if [ -e ${tmp} ]; then
+ rm -rf ${tmp}
fi
done