-
Notifications
You must be signed in to change notification settings - Fork 8
/
uninstall.sh
27 lines (27 loc) · 1.67 KB
/
uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
IP=$(hostname -i);
HOST=$(hostname);
echo "#####################################################################################";
echo "#####################################################################################";
echo "##### #####";
echo "##### WHMSELLER Uninstall #####";
echo "##### #####";
echo "##### Written and maintained by https://github.com/lucyfer622/whmseller/ #####";
echo "##### Email [email protected] for any questions regarding this module #####";
echo "##### We are kind sad to see you leave, but please help the plugin grow. #####";
echo "#####################################################################################";
echo "#####################################################################################";
echo "";
echo "#####################################################################################";
echo "|Website : https://github.com/lucyfer622/whmseller/";
echo "|Server Ip : $IP";
echo "|Hostname : $HOST";
echo "";
echo "Whmseller uninstalling....";
/usr/local/cpanel/bin/unregister_appconfig /usr/local/cpanel/whostmgr/docroot/cgi/whmseller/whmseller.conf;
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/addon_whmseller.cgi;
rm -rf /usr/local/cpanel/whostmgr/docroot/cgi/whmseller;
crontab -u root -l | grep -v 'whmseller' | crontab -u root -
/bin/systemctl restart cpanel.service > /dev/null 2>&1;
echo "Hope we see you in near future ;) You can allways count on our plugin to your needs";
rm -rf uninstall.sh;