postrm.sh 227 B

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