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