diff --git a/tmp/postremove b/tmp/postremove new file mode 100644 index 0000000..c939a7f --- /dev/null +++ b/tmp/postremove @@ -0,0 +1,15 @@ +#!/bin/bash + +if getent group backup 2>&1 >/dev/null; then + groupdel backup +fi +if getent passwd amanda 2>&1 >/dev/null; then + userdel amanda +fi + +sed -i -e "/^amandaidx/d" /etc/services +sed -i -e "/^amidxtape/d" /etc/services + +crontab -r -u amanda + +rm -r /etc/amandates /var/amanda