1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-10-31 17:11:13 +01:00
ntfy/scripts/postrm.sh
2021-12-08 22:08:44 -05:00

10 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/config.yml
rmdir /etc/ntfy || true
fi