Debian Codegraph @

scripts/postrm.sh

raw
1 #!/bin/sh
2 set -e
3
4 # Delete the config if package is purged
5 if [ "$1" = "purge" ] || [ "$1" = "0" ]; then
6 id ntfy >/dev/null 2>&1 && userdel ntfy
7 rm -f /etc/ntfy/server.yml /etc/ntfy/client.yml
8 rmdir /etc/ntfy || true
9 fi
10