编辑文件 cns.sh
This commit is contained in:
+4
-1
@@ -6,11 +6,14 @@
|
||||
#Stop cns & delete cns files.
|
||||
Delete() {
|
||||
systemctl disable cns.service
|
||||
rm -f /etc/init.d/Acns /lib/systemd/system/cns.service
|
||||
chkconfig --del cns
|
||||
/etc/init.d/Acns disable
|
||||
|
||||
if [ -f "${cns_install_dir:=/usr/local/cns}/cns.init" ]; then
|
||||
"$cns_install_dir"/cns.init stop
|
||||
rm -rf "$cns_install_dir"
|
||||
fi
|
||||
rm -f /etc/init.d/Acns /lib/systemd/system/cns.service /etc/rc.d/rc5.d/S99cns /etc/rc.d/S99cns /etc/rc5.d/S99cns
|
||||
}
|
||||
|
||||
#Print error message and exit.
|
||||
|
||||
Reference in New Issue
Block a user