mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-12-27 02:42:10 +03:00
9155c49571
This reverts commit 0821b8a25f
.
11 lines
227 B
Bash
Executable File
11 lines
227 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Delete the config if package is purged
|
|
if [ "$1" = "purge" ] || [ "$1" = "0" ]; then
|
|
id ntfy >/dev/null 2>&1 && userdel ntfy
|
|
rm -f /etc/ntfy/server.yml /etc/ntfy/client.yml
|
|
rmdir /etc/ntfy || true
|
|
fi
|
|
|