forked from acouzens/open5gs
28 lines
644 B
Bash
28 lines
644 B
Bash
#!/bin/bash
|
|
|
|
# Refer to Node.js install script
|
|
#
|
|
# Run as root or insert `sudo -E` before `bash`:
|
|
#
|
|
# curl -sL http://open5gs.org/static/uninstall_webui.sh | bash -
|
|
# or
|
|
# wget -qO- http://open5gs.org/static/uninstall_webui.shx | bash -
|
|
#
|
|
|
|
exec_cmd_nobail() {
|
|
echo "+ $1"
|
|
bash -c "$1"
|
|
}
|
|
|
|
uninstall() {
|
|
exec_cmd_nobail "deb-systemd-invoke stop open5gs-webui"
|
|
exec_cmd_nobail "systemctl disable open5gs-webui"
|
|
exec_cmd_nobail "rm -f /lib/systemd/system/open5gs-webui.service"
|
|
exec_cmd_nobail "rm -rf /usr/lib/node_modules/open5gs"
|
|
|
|
exec_cmd_nobail "systemctl daemon-reload"
|
|
}
|
|
|
|
## Defer setup until we have the complete script
|
|
uninstall
|