Skip to content

Instantly share code, notes, and snippets.

@yiquncode
Created December 30, 2010 15:43
Show Gist options
  • Save yiquncode/759912 to your computer and use it in GitHub Desktop.
Save yiquncode/759912 to your computer and use it in GitHub Desktop.
Uninstall directadmin in centos5.5
#i got some paths info from http://www.directadmin.com/paths.html and http://www.directadmin.com/forum/showthread.php?threadid=3365
#welcome to join and add more for uninstall them
#Notice:You have to shutdown some service setup by directadmin before you restart the server.
#http://www.zhangyiqun.net
rm -rf /etc/cron.d/directadmin_cron
rm -rf /usr/local/directadmin
rm -rf /etc/virtual
cd /home
chattr -i aquota.user
rm -rf aquota.group
rm -rf ftp
updatedb
for i in `locate mysql | grep -v jean`; do echo $i; done
for i in `locate named | grep -v jean`; do rm -rf $i; done
for i in `locate dovecot | grep -v jean`; do rm -rf $i; done
for i in `locate proftp | grep -v jean`; do rm -rf $i; done
for i in `locate exim | grep -v jean`; do rm -rf $i; done
@yiquncode
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment