1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh if [ 0 -eq $1 ];then echo 'start remove nz-web module from disk...' systemctl stop nz-web.service rm -rf /opt/nezha/nz-web systemctl disable nz-web.service rm -rf /usr/lib/systemd/system/nz-web.service systemctl daemon-reload echo 'uninstall success!' fi