Skip to content

Instantly share code, notes, and snippets.

@JinnLynn
Last active September 24, 2019 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JinnLynn/b6fc3234825103026bdf2aa427891ee3 to your computer and use it in GitHub Desktop.
Save JinnLynn/b6fc3234825103026bdf2aa427891ee3 to your computer and use it in GitHub Desktop.
Aliyun Cleanup
#!/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