Refactor build/install process

This commit is contained in:
2025-06-02 13:37:18 -05:00
parent 0403f6a3e2
commit c30c8f8677
5 changed files with 81 additions and 24 deletions

13
uninstall_ntfy_server.sh Executable file
View File

@ -0,0 +1,13 @@
#!/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