summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2024-05-03 13:09:06 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2024-05-03 13:26:30 +0200
commit871e39c5c975d53b3bdf77064ac706c494117611 (patch)
tree3e720970479c67280798260ba73c643cc5d319e9
parent2d6c3261106c4c380fe04063127fe3787befa3f5 (diff)
debian: remove /var/lib/frr on purge
Proper cleanup. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
-rw-r--r--debian/changelog1
-rw-r--r--debian/frr.postrm1
2 files changed, 2 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 971555b809..68640022fa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ frr (10.0-2) UNRELEASED; urgency=medium
* fix build on hppa
* only use libunwind on architectures where it is available
+ * remove /var/lib/frr on purge
-- David Lamparter <equinox-debian@diac24.net> Fri, 03 May 2024 12:51:03 +0200
diff --git a/debian/frr.postrm b/debian/frr.postrm
index 018f59e1c5..c553abd9d1 100644
--- a/debian/frr.postrm
+++ b/debian/frr.postrm
@@ -5,6 +5,7 @@ rm -f /etc/frr/.pkg.frr.nointegrated
if [ "$1" = "purge" ]; then
rm -rf /run/frr || true
+ rm -rf /var/lib/frr || true
# "purge" does not remove logfiles. therefore we shouldn't delete
# the "frr" user/group since that would leave files with "dangling"