2020-05-07 12:03:03

This commit is contained in:
monlor
2020-05-07 04:03:03 +00:00
parent 59e913dfa6
commit 98c08c81db
148 changed files with 147 additions and 0 deletions

15
temp/uninstall_old.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/sh
echo "本卸载脚本不会有任何提示但会很干净的卸载旧的工具箱GoodBye..."
ls $(uci get monlor.tools.path)/apps 2> /dev/null | while read appname; do
$(uci get monlor.tools.path)/apps/$appname/script/$appname.sh stop &> /dev/null
done
umount -lf /etc/config &> /dev/null
sed -i '/monlor/d' /etc/crontabs/root &> /dev/null
sed -i '/monlor/d' /etc/firewall.user &> /dev/null
sed -i "/monlor\/config/d" /etc/profile &> /dev/null
sed -i 's#:/etc/monlor/scripts##' /etc/profile &> /dev/null
[ -n "$(uci get monlor.tools.path)" ] && rm -rf $(uci get monlor.tools.path)
rm -rf /etc/monlor &> /dev/null
rm -rf /etc/config/monlor &> /dev/null