更新 cns/cns.sh

This commit is contained in:
2025-09-12 10:45:21 +00:00
parent 5832ea2860
commit 26f5d54bc1
+1 -1
View File
@@ -6,7 +6,7 @@
#Stop cns & delete cns files. #Stop cns & delete cns files.
Delete() { Delete() {
systemctl disable cns.service systemctl disable cns.service
rm -f /etc/init.d/cns /lib/systemd/system/cns.service rm -f /etc/init.d/Acns /lib/systemd/system/cns.service
if [ -f "${cns_install_dir:=/usr/local/cns}/cns.init" ]; then if [ -f "${cns_install_dir:=/usr/local/cns}/cns.init" ]; then
"$cns_install_dir"/cns.init stop "$cns_install_dir"/cns.init stop
rm -rf "$cns_install_dir" rm -rf "$cns_install_dir"