2021-10-23 21:29:45 -04:00
|
|
|
#!/bin/sh
|
2021-12-04 15:32:21 -05:00
|
|
|
set -e
|
|
|
|
|
|
|
|
# Delete the config if package is purged
|
2022-01-05 13:32:15 +01:00
|
|
|
if [ "$1" = "purge" ] || [ "$1" = "0" ]; then
|
2021-12-08 22:08:44 -05:00
|
|
|
id ntfy >/dev/null 2>&1 && userdel ntfy
|
2021-12-19 14:27:26 -05:00
|
|
|
rm -f /etc/ntfy/server.yml /etc/ntfy/client.yml
|
2021-12-08 22:08:44 -05:00
|
|
|
rmdir /etc/ntfy || true
|
2021-10-23 21:29:45 -04:00
|
|
|
fi
|
2021-12-08 22:08:44 -05:00
|
|
|
|