Last active
September 24, 2019 07:14
-
-
Save JinnLynn/b6fc3234825103026bdf2aa427891ee3 to your computer and use it in GitHub Desktop.
Aliyun Cleanup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
curl -Lso- http://update.aegis.aliyun.com/download/uninstall.sh | bash | |
curl -Lso- http://update.aegis.aliyun.com/download/quartz_uninstall.sh | bash | |
pkill aliyun-service | |
rm -rf /etc/init.d/agentwatch /usr/sbin/aliyun-service /usr/local/aegis* | |
[[ -f /usr/local/cloudmonitor/CmsGoAgent.linux-amd64 ]] && { | |
/usr/local/cloudmonitor/CmsGoAgent.linux-amd64 stop | |
/usr/local/cloudmonitor/CmsGoAgent.linux-amd64 uninstall | |
rm -rf /usr/local/cloudmonitor | |
} | |
find / -name 'aliyun*' -type d -exec rm -rf {} \; | |
find / -name 'aliyun*' -type f -exec rm -rf {} \; | |
find / -name 'aegis*' -type f -exec rm -rf {} \; | |
find / -name 'aegis*' -type d -exec rm -rf {} \; | |
rm -fr /usr/sbin/aliyun-service /usr/sbin/aliyun_installer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment