Files
ntfy-freebsd-server/uninstall_ntfy_server.sh

14 lines
256 B
Bash
Executable File

#!/bin/sh
# Remove configs & rc.d scripts
rm -rv /usr/local/etc/{ntfy,rc.d/ntfy*}
# Remove binary
rm -v /usr/local/bin/ntfy
# Remove pid, attachment, and database directories
rm -rv /var/{run/ntfy,cache/ntfy,lib/ntfy}
# Remove ntfy user
rmuser -v ntfy