postrm.sh 188 B

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