Refactor build/install process
This commit is contained in:
13
uninstall_ntfy_server.sh
Executable file
13
uninstall_ntfy_server.sh
Executable 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
|
||||
Reference in New Issue
Block a user