2021-10-24 01:29:45 +00:00
|
|
|
#!/bin/sh
|
2021-12-04 20:32:21 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
# Delete the config if package is purged
|
2021-10-24 01:29:45 +00:00
|
|
|
if [ "$1" = "purge" ]; then
|
2021-12-09 03:08:44 +00:00
|
|
|
id ntfy >/dev/null 2>&1 && userdel ntfy
|
|
|
|
rm -f /etc/ntfy/config.yml
|
|
|
|
rmdir /etc/ntfy || true
|
2021-10-24 01:29:45 +00:00
|
|
|
fi
|
2021-12-09 03:08:44 +00:00
|
|
|
|