diff options
Diffstat (limited to 'debian/frr.postrm')
-rw-r--r-- | debian/frr.postrm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/frr.postrm b/debian/frr.postrm new file mode 100644 index 000000000..26576fd13 --- /dev/null +++ b/debian/frr.postrm @@ -0,0 +1,12 @@ +#!/bin/bash -e + +if [ -n "$DEBIAN_SCRIPT_DEBUG" ]; then set -v -x; DEBIAN_SCRIPT_TRACE=1; fi +${DEBIAN_SCRIPT_TRACE:+ echo "#42#DEBUG# RUNNING $0 $*"} +# set -u not because of debhelper + +if [ "$1" = "purge" ]; then + rm -rf /etc/frr /var/run/frr /var/log/frr + userdel frr >/dev/null 2>&1 || true +fi + +#DEBHELPER# |