mirror of
https://github.com/waytotheweb/scripts.git
synced 2026-03-29 17:07:07 +00:00
cxs, osm and csf
This commit is contained in:
77
csf/uninstall.cpanel.sh
Normal file
77
csf/uninstall.cpanel.sh
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling csf and lfd..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
/usr/sbin/csf -f
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable csf.service
|
||||||
|
systemctl disable lfd.service
|
||||||
|
systemctl stop csf.service
|
||||||
|
systemctl stop lfd.service
|
||||||
|
|
||||||
|
rm -fv /usr/lib/systemd/system/csf.service
|
||||||
|
rm -fv /usr/lib/systemd/system/lfd.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
update-rc.d -f lfd remove
|
||||||
|
update-rc.d -f csf remove
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
rc-update del lfd default
|
||||||
|
rc-update del csf default
|
||||||
|
elif [ -f /etc/slackware-version ]; then
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S85lfd
|
||||||
|
else
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
fi
|
||||||
|
rm -fv /etc/init.d/csf
|
||||||
|
rm -fv /etc/init.d/lfd
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then
|
||||||
|
cd /
|
||||||
|
/usr/local/cpanel/bin/unregister_appconfig csf
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /etc/chkserv.d/lfd
|
||||||
|
rm -fv /usr/sbin/csf
|
||||||
|
rm -fv /usr/sbin/lfd
|
||||||
|
rm -fv /etc/cron.d/csf_update
|
||||||
|
rm -fv /etc/cron.d/lfd-cron
|
||||||
|
rm -fv /etc/cron.d/csf-cron
|
||||||
|
rm -fv /etc/logrotate.d/lfd
|
||||||
|
rm -fv /usr/local/man/man1/csf.man.1
|
||||||
|
|
||||||
|
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_csf.cgi
|
||||||
|
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/csf
|
||||||
|
|
||||||
|
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/csf.cgi
|
||||||
|
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/csf
|
||||||
|
|
||||||
|
/bin/rm -fv /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver/ConfigServercsf.pm
|
||||||
|
/bin/rm -Rfv /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver/ConfigServercsf
|
||||||
|
/bin/touch /usr/local/cpanel/Cpanel/Config/ConfigObj/Driver
|
||||||
|
|
||||||
|
rm -fv /var/run/chkservd/lfd
|
||||||
|
sed -i 's/lfd:1//' /etc/chkserv.d/chkservd.conf
|
||||||
|
/scripts/restartsrv_chkservd
|
||||||
|
|
||||||
|
rm -Rfv /etc/csf /usr/local/csf /var/lib/csf
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
61
csf/uninstall.cwp.sh
Normal file
61
csf/uninstall.cwp.sh
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling csf and lfd..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
/usr/sbin/csf -f
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable csf.service
|
||||||
|
systemctl disable lfd.service
|
||||||
|
systemctl stop lfd.service
|
||||||
|
systemctl stop csf.service
|
||||||
|
|
||||||
|
rm -fv /usr/lib/systemd/system/csf.service
|
||||||
|
rm -fv /usr/lib/systemd/system/lfd.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
update-rc.d -f lfd remove
|
||||||
|
update-rc.d -f csf remove
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
rc-update del lfd default
|
||||||
|
rc-update del csf default
|
||||||
|
elif [ -f /etc/slackware-version ]; then
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S85lfd
|
||||||
|
else
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
fi
|
||||||
|
rm -fv /etc/init.d/csf
|
||||||
|
rm -fv /etc/init.d/lfd
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /etc/chkserv.d/lfd
|
||||||
|
rm -fv /usr/sbin/csf
|
||||||
|
rm -fv /usr/sbin/lfd
|
||||||
|
rm -fv /etc/cron.d/csf_update
|
||||||
|
rm -fv /etc/cron.d/lfd-cron
|
||||||
|
rm -fv /etc/cron.d/csf-cron
|
||||||
|
rm -fv /etc/logrotate.d/lfd
|
||||||
|
rm -fv /usr/local/man/man1/csf.man.1
|
||||||
|
|
||||||
|
rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/csfofficial.php
|
||||||
|
rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/csf.pl
|
||||||
|
rm -fv /usr/local/cwpsrv/htdocs/resources/admin/addons/ajax/ajax_csfframe.php
|
||||||
|
rm -Rfv /usr/local/cwpsrv/htdocs/admin/design/csf/
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
70
csf/uninstall.cyberpanel.sh
Normal file
70
csf/uninstall.cyberpanel.sh
Normal file
@@ -0,0 +1,70 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling csf and lfd..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
/usr/sbin/csf -f
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable csf.service
|
||||||
|
systemctl disable lfd.service
|
||||||
|
systemctl stop lfd.service
|
||||||
|
systemctl stop csf.service
|
||||||
|
|
||||||
|
rm -fv /usr/lib/systemd/system/csf.service
|
||||||
|
rm -fv /usr/lib/systemd/system/lfd.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
update-rc.d -f lfd remove
|
||||||
|
update-rc.d -f csf remove
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
rc-update del lfd default
|
||||||
|
rc-update del csf default
|
||||||
|
elif [ -f /etc/slackware-version ]; then
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S85lfd
|
||||||
|
else
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
fi
|
||||||
|
rm -fv /etc/init.d/csf
|
||||||
|
rm -fv /etc/init.d/lfd
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /etc/chkserv.d/lfd
|
||||||
|
rm -fv /usr/sbin/csf
|
||||||
|
rm -fv /usr/sbin/lfd
|
||||||
|
rm -fv /etc/cron.d/csf_update
|
||||||
|
rm -fv /etc/cron.d/lfd-cron
|
||||||
|
rm -fv /etc/cron.d/csf-cron
|
||||||
|
rm -fv /etc/logrotate.d/lfd
|
||||||
|
rm -fv /usr/local/man/man1/csf.man.1
|
||||||
|
|
||||||
|
rm -Rfv /usr/local/CyberCP/configservercsf
|
||||||
|
rm -fv /home/cyberpanel/plugins/configservercsf
|
||||||
|
rm -Rfv /usr/local/CyberCP/public/static/configservercsf
|
||||||
|
|
||||||
|
sed -i "/configservercsf/d" /usr/local/CyberCP/CyberCP/settings.py
|
||||||
|
sed -i "/configservercsf/d" /usr/local/CyberCP/CyberCP/urls.py
|
||||||
|
if [ ! -e /etc/cxs/cxs.pl ]; then
|
||||||
|
sed -i "/configserver/d" /usr/local/CyberCP/baseTemplate/templates/baseTemplate/index.html
|
||||||
|
fi
|
||||||
|
|
||||||
|
service lscpd restart
|
||||||
|
|
||||||
|
rm -Rfv /etc/csf /usr/local/csf /var/lib/csf
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
61
csf/uninstall.directadmin.sh
Normal file
61
csf/uninstall.directadmin.sh
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling csf and lfd..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
sed -i 's/lfd=ON/lfd=OFF/' /usr/local/directadmin/data/admin/services.status
|
||||||
|
|
||||||
|
/usr/sbin/csf -f
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable csf.service
|
||||||
|
systemctl disable lfd.service
|
||||||
|
systemctl stop lfd.service
|
||||||
|
systemctl stop csf.service
|
||||||
|
|
||||||
|
rm -fv /usr/lib/systemd/system/csf.service
|
||||||
|
rm -fv /usr/lib/systemd/system/lfd.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
update-rc.d -f lfd remove
|
||||||
|
update-rc.d -f csf remove
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
rc-update del lfd default
|
||||||
|
rc-update del csf default
|
||||||
|
elif [ -f /etc/slackware-version ]; then
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S85lfd
|
||||||
|
else
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
fi
|
||||||
|
rm -fv /etc/init.d/csf
|
||||||
|
rm -fv /etc/init.d/lfd
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /etc/chkserv.d/lfd
|
||||||
|
rm -fv /usr/sbin/csf
|
||||||
|
rm -fv /usr/sbin/lfd
|
||||||
|
rm -fv /etc/cron.d/csf_update
|
||||||
|
rm -fv /etc/cron.d/lfd-cron
|
||||||
|
rm -fv /etc/cron.d/csf-cron
|
||||||
|
rm -Rfv /usr/local/directadmin/plugins/csf
|
||||||
|
rm -fv /etc/logrotate.d/lfd
|
||||||
|
rm -fv /usr/local/man/man1/csf.man.1
|
||||||
|
|
||||||
|
rm -Rfv /etc/csf /usr/local/csf /var/lib/csf
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
58
csf/uninstall.generic.sh
Normal file
58
csf/uninstall.generic.sh
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling csf and lfd..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
/usr/sbin/csf -f
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable csf.service
|
||||||
|
systemctl disable lfd.service
|
||||||
|
systemctl stop lfd.service
|
||||||
|
systemctl stop csf.service
|
||||||
|
|
||||||
|
rm -fv /usr/lib/systemd/system/csf.service
|
||||||
|
rm -fv /usr/lib/systemd/system/lfd.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
update-rc.d -f lfd remove
|
||||||
|
update-rc.d -f csf remove
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
rc-update del lfd default
|
||||||
|
rc-update del csf default
|
||||||
|
elif [ -f /etc/slackware-version ]; then
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S85lfd
|
||||||
|
else
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
fi
|
||||||
|
rm -fv /etc/init.d/csf
|
||||||
|
rm -fv /etc/init.d/lfd
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /etc/chkserv.d/lfd
|
||||||
|
rm -fv /usr/sbin/csf
|
||||||
|
rm -fv /usr/sbin/lfd
|
||||||
|
rm -fv /etc/cron.d/csf_update
|
||||||
|
rm -fv /etc/cron.d/lfd-cron
|
||||||
|
rm -fv /etc/cron.d/csf-cron
|
||||||
|
rm -fv /etc/logrotate.d/lfd
|
||||||
|
rm -fv /usr/local/man/man1/csf.man.1
|
||||||
|
|
||||||
|
rm -Rfv /etc/csf /usr/local/csf /var/lib/csf
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
64
csf/uninstall.interworx.sh
Normal file
64
csf/uninstall.interworx.sh
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling csf and lfd..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
/usr/sbin/csf -f
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable csf.service
|
||||||
|
systemctl disable lfd.service
|
||||||
|
systemctl stop lfd.service
|
||||||
|
systemctl stop csf.service
|
||||||
|
|
||||||
|
rm -fv /usr/lib/systemd/system/csf.service
|
||||||
|
rm -fv /usr/lib/systemd/system/lfd.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
update-rc.d -f lfd remove
|
||||||
|
update-rc.d -f csf remove
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
rc-update del lfd default
|
||||||
|
rc-update del csf default
|
||||||
|
elif [ -f /etc/slackware-version ]; then
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S85lfd
|
||||||
|
else
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
fi
|
||||||
|
rm -fv /etc/init.d/csf
|
||||||
|
rm -fv /etc/init.d/lfd
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /etc/chkserv.d/lfd
|
||||||
|
rm -fv /usr/sbin/csf
|
||||||
|
rm -fv /usr/sbin/lfd
|
||||||
|
rm -fv /etc/cron.d/csf_update
|
||||||
|
rm -fv /etc/cron.d/lfd-cron
|
||||||
|
rm -fv /etc/cron.d/csf-cron
|
||||||
|
rm -fv /etc/logrotate.d/lfd
|
||||||
|
rm -fv /usr/local/man/man1/csf.man.1
|
||||||
|
|
||||||
|
/usr/local/interworx/bin/nodeworx.pex -u --controller Plugins --action edit --plugin_name configservercsf --status 0 -n
|
||||||
|
rm -Rfv /etc/csf /usr/local/csf /var/lib/csf /usr/local/interworx/plugins/configservercsf /usr/local/interworx/html/configserver/csf
|
||||||
|
chattr -ia /etc/apf/apf
|
||||||
|
if [ -e "/etc/apf/apf.old" ]; then
|
||||||
|
cp -avf /etc/apf/apf.old /etc/apf/apf
|
||||||
|
chmod 750 /etc/apf/apf
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
61
csf/uninstall.vesta.sh
Normal file
61
csf/uninstall.vesta.sh
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling csf and lfd..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
/usr/sbin/csf -f
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable csf.service
|
||||||
|
systemctl disable lfd.service
|
||||||
|
systemctl stop lfd.service
|
||||||
|
systemctl stop csf.service
|
||||||
|
|
||||||
|
rm -fv /usr/lib/systemd/system/csf.service
|
||||||
|
rm -fv /usr/lib/systemd/system/lfd.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
update-rc.d -f lfd remove
|
||||||
|
update-rc.d -f csf remove
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
rc-update del lfd default
|
||||||
|
rc-update del csf default
|
||||||
|
elif [ -f /etc/slackware-version ]; then
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S80csf
|
||||||
|
rm -vf /etc/rc.d/rc3.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc4.d/S85lfd
|
||||||
|
rm -vf /etc/rc.d/rc5.d/S85lfd
|
||||||
|
else
|
||||||
|
/sbin/chkconfig csf off
|
||||||
|
/sbin/chkconfig lfd off
|
||||||
|
/sbin/chkconfig csf --del
|
||||||
|
/sbin/chkconfig lfd --del
|
||||||
|
fi
|
||||||
|
rm -fv /etc/init.d/csf
|
||||||
|
rm -fv /etc/init.d/lfd
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /etc/chkserv.d/lfd
|
||||||
|
rm -fv /usr/sbin/csf
|
||||||
|
rm -fv /usr/sbin/lfd
|
||||||
|
rm -fv /etc/cron.d/csf_update
|
||||||
|
rm -fv /etc/cron.d/lfd-cron
|
||||||
|
rm -fv /etc/cron.d/csf-cron
|
||||||
|
rm -fv /etc/logrotate.d/lfd
|
||||||
|
rm -fv /usr/local/man/man1/csf.man.1
|
||||||
|
|
||||||
|
rm -fv /usr/sbin/csf /usr/local/vesta/bin/csf.pl
|
||||||
|
rm -Rfv /etc/csf /usr/local/vesta/web/list/csf/
|
||||||
|
rm -fv /usr/local/csf/lib/ConfigServer/csf.pm
|
||||||
|
sed -i "/CSF/d" /usr/local/vesta/web/templates/admin/panel.html
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
63
cxs/uninstall.cpanel.sh
Normal file
63
cxs/uninstall.cpanel.sh
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling cxs..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
rm -fv /var/run/chkservd/cxswatch
|
||||||
|
sed -i '/^cxswatch:/d' /etc/chkserv.d/chkservd.conf
|
||||||
|
/scripts/restartsrv_chkservd
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable cxswatch.service
|
||||||
|
systemctl disable pure-uploadscript.service
|
||||||
|
systemctl stop cxswatch.service
|
||||||
|
systemctl stop pure-uploadscript.service
|
||||||
|
rm -fv /usr/lib/systemd/system/cxswatch.service
|
||||||
|
rm -fv /usr/lib/systemd/system/pure-uploadscript.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
fi
|
||||||
|
|
||||||
|
sed -i "s/^CallUploadScript/\#CallUploadScript/" /etc/pure-ftpd.conf
|
||||||
|
sed -i "/^CallUploadScript/d" /var/cpanel/conf/pureftpd/main
|
||||||
|
sed -i "/^CallUploadScript/d" /var/cpanel/conf/pureftpd/local
|
||||||
|
/scripts/restartsrv_ftpserver
|
||||||
|
|
||||||
|
if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then
|
||||||
|
cd /
|
||||||
|
/usr/local/cpanel/bin/unregister_appconfig cxs
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /usr/sbin/cxs
|
||||||
|
rm -fv /etc/cron.d/cxs-cron
|
||||||
|
rm -fv /etc/cron.d/cxsdb-cron
|
||||||
|
rm -fv /etc/cron.daily/cxsdaily.sh
|
||||||
|
rm -fv /scripts/postftpup
|
||||||
|
|
||||||
|
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cxs.cgi
|
||||||
|
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cxs
|
||||||
|
|
||||||
|
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cxs.cgi
|
||||||
|
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cxs
|
||||||
|
|
||||||
|
/scripts/modsec_vendor remove configserver
|
||||||
|
/usr/local/cpanel/bin/manage_hooks delete module ConfigServer::CXS::FTPHook > /dev/null 2>&1
|
||||||
|
/usr/local/cpanel/bin/manage_hooks delete module ConfigServer::CXS::AccountHook > /dev/null 2>&1
|
||||||
|
|
||||||
|
rm -Rfv /etc/cxs
|
||||||
|
rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm
|
||||||
|
cd
|
||||||
|
|
||||||
|
wget -q -O /dev/null http://license.configserver.com/cgi-bin/cxs/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
59
cxs/uninstall.cwp.sh
Normal file
59
cxs/uninstall.cwp.sh
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling cxs..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable cxswatch.service
|
||||||
|
systemctl disable pure-uploadscript.service
|
||||||
|
systemctl stop cxswatch.service
|
||||||
|
systemctl stop pure-uploadscript.service
|
||||||
|
rm -fv /usr/lib/systemd/system/cxswatch.service
|
||||||
|
rm -fv /usr/lib/systemd/system/pure-uploadscript.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
update-rc.d -f pure-uploadscript remove
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
rc-update del pure-uploadscript default
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
else
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/cxs.php
|
||||||
|
rm -fv /usr/local/cwpsrv/htdocs/resources/admin/modules/cxs.pl
|
||||||
|
rm -fv /usr/local/cwpsrv/htdocs/resources/admin/addons/ajax/ajax_cxsframe.php
|
||||||
|
rm -Rfv /etc/cxs /usr/local/cwpsrv/htdocs/admin/design/cxs/
|
||||||
|
#sed -i "/configserver/d" /usr/local/cwpsrv/htdocs/resources/admin/include/3rdparty.php
|
||||||
|
|
||||||
|
rm -fv /etc/cron.d/cxs-cron
|
||||||
|
rm -fv /etc/cron.d/cxsdb-cron
|
||||||
|
rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm
|
||||||
|
|
||||||
|
wget -qO -o /dev/null - - http://license.configserver.com/cgi-bin/cxs/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
67
cxs/uninstall.cyberpanel.sh
Normal file
67
cxs/uninstall.cyberpanel.sh
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling cxs..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable cxswatch.service
|
||||||
|
systemctl disable pure-uploadscript.service
|
||||||
|
systemctl stop cxswatch.service
|
||||||
|
systemctl stop pure-uploadscript.service
|
||||||
|
rm -fv /usr/lib/systemd/system/cxswatch.service
|
||||||
|
rm -fv /usr/lib/systemd/system/pure-uploadscript.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
update-rc.d -f pure-uploadscript remove
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
rc-update del pure-uploadscript default
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
else
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /usr/sbin/cxs
|
||||||
|
rm -fv /etc/cron.d/cxs-cron
|
||||||
|
rm -fv /etc/cron.d/cxsdb-cron
|
||||||
|
rm -Rfv /etc/cxs
|
||||||
|
rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm
|
||||||
|
|
||||||
|
rm -Rfv /usr/local/CyberCP/configservercxs
|
||||||
|
rm -fv /home/cyberpanel/plugins/configservercxs
|
||||||
|
rm -Rfv /usr/local/CyberCP/public/static/configservercxs
|
||||||
|
|
||||||
|
sed -i "/configservercxs/d" /usr/local/CyberCP/CyberCP/settings.py
|
||||||
|
sed -i "/configservercxs/d" /usr/local/CyberCP/CyberCP/urls.py
|
||||||
|
if [ ! -e /etc/csf/csf.pl ]; then
|
||||||
|
sed -i "/configserver/d" /usr/local/CyberCP/baseTemplate/templates/baseTemplate/index.html
|
||||||
|
fi
|
||||||
|
|
||||||
|
service lscpd restart
|
||||||
|
|
||||||
|
wget -qO -o /dev/null - - http://license.configserver.com/cgi-bin/cxs/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
57
cxs/uninstall.directadmin.sh
Normal file
57
cxs/uninstall.directadmin.sh
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling cxs..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable cxswatch.service
|
||||||
|
systemctl disable pure-uploadscript.service
|
||||||
|
systemctl stop cxswatch.service
|
||||||
|
systemctl stop pure-uploadscript.service
|
||||||
|
rm -fv /usr/lib/systemd/system/cxswatch.service
|
||||||
|
rm -fv /usr/lib/systemd/system/pure-uploadscript.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
update-rc.d -f pure-uploadscript remove
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
rc-update del pure-uploadscript default
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
else
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /usr/sbin/cxs
|
||||||
|
rm -Rfv /usr/local/directadmin/plugins/cxs
|
||||||
|
rm -fv /etc/cron.d/cxs-cron
|
||||||
|
rm -fv /etc/cron.d/cxsdb-cron
|
||||||
|
rm -Rfv /etc/cxs
|
||||||
|
rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm
|
||||||
|
cd
|
||||||
|
|
||||||
|
wget -qO -o /dev/null - - http://license.configserver.com/cgi-bin/cxs/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
56
cxs/uninstall.generic.sh
Normal file
56
cxs/uninstall.generic.sh
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling cxs..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable cxswatch.service
|
||||||
|
systemctl disable pure-uploadscript.service
|
||||||
|
systemctl stop cxswatch.service
|
||||||
|
systemctl stop pure-uploadscript.service
|
||||||
|
rm -fv /usr/lib/systemd/system/cxswatch.service
|
||||||
|
rm -fv /usr/lib/systemd/system/pure-uploadscript.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
update-rc.d -f pure-uploadscript remove
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
rc-update del pure-uploadscript default
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
else
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /usr/sbin/cxs
|
||||||
|
rm -fv /etc/cron.d/cxs-cron
|
||||||
|
rm -fv /etc/cron.d/cxsdb-cron
|
||||||
|
rm -Rfv /etc/cxs
|
||||||
|
rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm
|
||||||
|
cd
|
||||||
|
|
||||||
|
wget -qO -o /dev/null - - http://license.configserver.com/cgi-bin/cxs/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
59
cxs/uninstall.interworx.sh
Normal file
59
cxs/uninstall.interworx.sh
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling cxs..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable cxswatch.service
|
||||||
|
systemctl disable pure-uploadscript.service
|
||||||
|
systemctl stop cxswatch.service
|
||||||
|
systemctl stop pure-uploadscript.service
|
||||||
|
rm -fv /usr/lib/systemd/system/cxswatch.service
|
||||||
|
rm -fv /usr/lib/systemd/system/pure-uploadscript.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
update-rc.d -f pure-uploadscript remove
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
rc-update del pure-uploadscript default
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
else
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
/usr/local/interworx/bin/nodeworx.pex -u --controller Plugins --action edit --plugin_name configservercxs --status 0 -n
|
||||||
|
rm -fv /usr/sbin/cxs
|
||||||
|
rm -fv /etc/cron.d/cxs-cron
|
||||||
|
rm -fv /etc/cron.d/cxsdb-cron
|
||||||
|
rm -Rfv /etc/cxs
|
||||||
|
rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm
|
||||||
|
rm -Rfv /usr/local/interworx/plugins/configservercxs /usr/local/interworx/html/configserver/cxs
|
||||||
|
|
||||||
|
cd
|
||||||
|
|
||||||
|
wget -qO -o /dev/null - - http://license.configserver.com/cgi-bin/cxs/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
58
cxs/uninstall.plesk.sh
Normal file
58
cxs/uninstall.plesk.sh
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling cxs..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable cxswatch.service
|
||||||
|
systemctl disable pure-uploadscript.service
|
||||||
|
systemctl stop cxswatch.service
|
||||||
|
systemctl stop pure-uploadscript.service
|
||||||
|
rm -fv /usr/lib/systemd/system/cxswatch.service
|
||||||
|
rm -fv /usr/lib/systemd/system/pure-uploadscript.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
update-rc.d -f pure-uploadscript remove
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
rc-update del pure-uploadscript default
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
else
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /usr/sbin/cxs
|
||||||
|
rm -fv /etc/cron.d/cxs-cron
|
||||||
|
rm -fv /etc/cron.d/cxsdb-cron
|
||||||
|
rm -Rfv /etc/cxs
|
||||||
|
rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm
|
||||||
|
|
||||||
|
/usr/sbin/plesk bin extension -u cxs
|
||||||
|
rm -fv /usr/local/psa/admin/bin/cxs.pl /usr/local/psa/admin/sbin/cxs.pl
|
||||||
|
|
||||||
|
wget -qO -o /dev/null - - http://license.configserver.com/cgi-bin/cxs/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
56
cxs/uninstall.vestacp.sh
Normal file
56
cxs/uninstall.vestacp.sh
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling cxs..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable cxswatch.service
|
||||||
|
systemctl disable pure-uploadscript.service
|
||||||
|
systemctl stop cxswatch.service
|
||||||
|
systemctl stop pure-uploadscript.service
|
||||||
|
rm -fv /usr/lib/systemd/system/cxswatch.service
|
||||||
|
rm -fv /usr/lib/systemd/system/pure-uploadscript.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
elif [ -f /etc/debian_version ] || [ -f /etc/lsb-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
update-rc.d -f pure-uploadscript remove
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
elif [ -f /etc/gentoo-release ]; then
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
rc-update del pure-uploadscript default
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
else
|
||||||
|
/etc/init.d/pure-uploadscript stop
|
||||||
|
chkconfig pure-uploadscript off
|
||||||
|
chkconfig pure-uploadscript --del
|
||||||
|
rm -fv /etc/init.d/pure-uploadscript
|
||||||
|
|
||||||
|
/etc/init.d/cxswatch stop
|
||||||
|
/sbin/chkconfig cxswatch off
|
||||||
|
/sbin/chkconfig cxswatch --del
|
||||||
|
rm -fv /etc/init.d/cxswatch
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /usr/sbin/cxs /usr/local/vesta/bin/cxs.pl
|
||||||
|
rm -fv /etc/cron.d/cxs-cron
|
||||||
|
rm -fv /etc/cron.d/cxsdb-cron
|
||||||
|
rm -Rfv /etc/cxs /usr/local/vesta/web/list/cxs/
|
||||||
|
rm -fv /usr/local/csf/lib/ConfigServer/cxs.pm
|
||||||
|
sed -i "/CXS/d" /usr/local/vesta/web/templates/admin/panel.html
|
||||||
|
|
||||||
|
wget -qO -o /dev/null - - http://license.configserver.com/cgi-bin/cxs/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
37
osm/uninstall.cpanel.sh
Normal file
37
osm/uninstall.cpanel.sh
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling osm..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
rm -fv /var/run/chkservd/osmd
|
||||||
|
sed -i '/^osmd:/d' /etc/chkserv.d/chkservd.conf
|
||||||
|
/scripts/restartsrv_chkservd
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable osmd.service
|
||||||
|
systemctl stop osmd.service
|
||||||
|
rm -fv /usr/lib/systemd/system/osmd.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
/etc/init.d/osmd stop
|
||||||
|
/sbin/chkconfig osmd off
|
||||||
|
/sbin/chkconfig osmd --del
|
||||||
|
rm -fv /etc/init.d/osmd
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then
|
||||||
|
cd /
|
||||||
|
/usr/local/cpanel/bin/unregister_appconfig osm
|
||||||
|
fi
|
||||||
|
|
||||||
|
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/osm
|
||||||
|
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/osm.cgi
|
||||||
|
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/osm
|
||||||
|
|
||||||
|
rm -Rfv /etc/osm
|
||||||
|
cd
|
||||||
|
|
||||||
|
wget -q -O /dev/null http://license.configserver.com/cgi-bin/osm/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
29
osm/uninstall.directadmin.sh
Normal file
29
osm/uninstall.directadmin.sh
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
echo "Uninstalling osm..."
|
||||||
|
echo
|
||||||
|
|
||||||
|
if test `cat /proc/1/comm` = "systemd"
|
||||||
|
then
|
||||||
|
systemctl disable osmd.service
|
||||||
|
systemctl stop osmd.service
|
||||||
|
rm -fv /usr/lib/systemd/system/osmd.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
else
|
||||||
|
/etc/init.d/osmd stop
|
||||||
|
/sbin/chkconfig osmd off
|
||||||
|
/sbin/chkconfig osmd --del
|
||||||
|
rm -fv /etc/init.d/osmd
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -fv /etc/exim.acl_script.pre.osm.conf
|
||||||
|
rm -fv /etc/exim.acl_check_recipient.pre.osm.conf
|
||||||
|
rm -fv /etc/virtual/osm_disable
|
||||||
|
rm -fv /etc/virtual/osm_hold
|
||||||
|
rm -Rfv /usr/local/directadmin/plugins/osm
|
||||||
|
rm -Rfv /etc/osm
|
||||||
|
cd
|
||||||
|
|
||||||
|
wget -q -O /dev/null http://license.configserver.com/cgi-bin/osm/uninstall.cgi
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "...Done"
|
||||||
Reference in New Issue
Block a user