ntfy/scripts/postrm.sh
2021-12-18 22:02:36 -05:00

11 lines
188 B
Bash
Executable file

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