ntfy/scripts/postrm.sh

11 lines
188 B
Bash
Raw Normal View History

#!/bin/sh
set -e
# Delete the config if package is purged
if [ "$1" = "purge" ]; then
id ntfy >/dev/null 2>&1 && userdel ntfy
2021-12-19 16:02:36 +13:00
rm -f /etc/ntfy/server.yml
rmdir /etc/ntfy || true
fi