From 8fcbe754b2a56a9afcc5dedf4a3fabf8597f8e3c Mon Sep 17 00:00:00 2001 From: chirpy <117446115+chirpy2605@users.noreply.github.com> Date: Mon, 28 Jul 2025 11:14:13 +0100 Subject: [PATCH] cxs, osm and csf --- csf/uninstall.cpanel.sh | 77 ++++++++++++++++++++++++++++++++++++ csf/uninstall.cwp.sh | 61 ++++++++++++++++++++++++++++ csf/uninstall.cyberpanel.sh | 70 ++++++++++++++++++++++++++++++++ csf/uninstall.directadmin.sh | 61 ++++++++++++++++++++++++++++ csf/uninstall.generic.sh | 58 +++++++++++++++++++++++++++ csf/uninstall.interworx.sh | 64 ++++++++++++++++++++++++++++++ csf/uninstall.vesta.sh | 61 ++++++++++++++++++++++++++++ cxs/uninstall.cpanel.sh | 63 +++++++++++++++++++++++++++++ cxs/uninstall.cwp.sh | 59 +++++++++++++++++++++++++++ cxs/uninstall.cyberpanel.sh | 67 +++++++++++++++++++++++++++++++ cxs/uninstall.directadmin.sh | 57 ++++++++++++++++++++++++++ cxs/uninstall.generic.sh | 56 ++++++++++++++++++++++++++ cxs/uninstall.interworx.sh | 59 +++++++++++++++++++++++++++ cxs/uninstall.plesk.sh | 58 +++++++++++++++++++++++++++ cxs/uninstall.vestacp.sh | 56 ++++++++++++++++++++++++++ osm/uninstall.cpanel.sh | 37 +++++++++++++++++ osm/uninstall.directadmin.sh | 29 ++++++++++++++ 17 files changed, 993 insertions(+) create mode 100644 csf/uninstall.cpanel.sh create mode 100644 csf/uninstall.cwp.sh create mode 100644 csf/uninstall.cyberpanel.sh create mode 100644 csf/uninstall.directadmin.sh create mode 100644 csf/uninstall.generic.sh create mode 100644 csf/uninstall.interworx.sh create mode 100644 csf/uninstall.vesta.sh create mode 100644 cxs/uninstall.cpanel.sh create mode 100644 cxs/uninstall.cwp.sh create mode 100644 cxs/uninstall.cyberpanel.sh create mode 100644 cxs/uninstall.directadmin.sh create mode 100644 cxs/uninstall.generic.sh create mode 100644 cxs/uninstall.interworx.sh create mode 100644 cxs/uninstall.plesk.sh create mode 100644 cxs/uninstall.vestacp.sh create mode 100644 osm/uninstall.cpanel.sh create mode 100644 osm/uninstall.directadmin.sh diff --git a/csf/uninstall.cpanel.sh b/csf/uninstall.cpanel.sh new file mode 100644 index 0000000..5a0d851 --- /dev/null +++ b/csf/uninstall.cpanel.sh @@ -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" diff --git a/csf/uninstall.cwp.sh b/csf/uninstall.cwp.sh new file mode 100644 index 0000000..33e1fac --- /dev/null +++ b/csf/uninstall.cwp.sh @@ -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" diff --git a/csf/uninstall.cyberpanel.sh b/csf/uninstall.cyberpanel.sh new file mode 100644 index 0000000..efa1063 --- /dev/null +++ b/csf/uninstall.cyberpanel.sh @@ -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" diff --git a/csf/uninstall.directadmin.sh b/csf/uninstall.directadmin.sh new file mode 100644 index 0000000..20b4535 --- /dev/null +++ b/csf/uninstall.directadmin.sh @@ -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" diff --git a/csf/uninstall.generic.sh b/csf/uninstall.generic.sh new file mode 100644 index 0000000..c137215 --- /dev/null +++ b/csf/uninstall.generic.sh @@ -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" diff --git a/csf/uninstall.interworx.sh b/csf/uninstall.interworx.sh new file mode 100644 index 0000000..204e51d --- /dev/null +++ b/csf/uninstall.interworx.sh @@ -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" diff --git a/csf/uninstall.vesta.sh b/csf/uninstall.vesta.sh new file mode 100644 index 0000000..550cd81 --- /dev/null +++ b/csf/uninstall.vesta.sh @@ -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" diff --git a/cxs/uninstall.cpanel.sh b/cxs/uninstall.cpanel.sh new file mode 100644 index 0000000..55dd769 --- /dev/null +++ b/cxs/uninstall.cpanel.sh @@ -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" diff --git a/cxs/uninstall.cwp.sh b/cxs/uninstall.cwp.sh new file mode 100644 index 0000000..7ada928 --- /dev/null +++ b/cxs/uninstall.cwp.sh @@ -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" diff --git a/cxs/uninstall.cyberpanel.sh b/cxs/uninstall.cyberpanel.sh new file mode 100644 index 0000000..e7905bf --- /dev/null +++ b/cxs/uninstall.cyberpanel.sh @@ -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" diff --git a/cxs/uninstall.directadmin.sh b/cxs/uninstall.directadmin.sh new file mode 100644 index 0000000..ca63be5 --- /dev/null +++ b/cxs/uninstall.directadmin.sh @@ -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" diff --git a/cxs/uninstall.generic.sh b/cxs/uninstall.generic.sh new file mode 100644 index 0000000..cd35813 --- /dev/null +++ b/cxs/uninstall.generic.sh @@ -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" diff --git a/cxs/uninstall.interworx.sh b/cxs/uninstall.interworx.sh new file mode 100644 index 0000000..9673458 --- /dev/null +++ b/cxs/uninstall.interworx.sh @@ -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" diff --git a/cxs/uninstall.plesk.sh b/cxs/uninstall.plesk.sh new file mode 100644 index 0000000..3cee4b1 --- /dev/null +++ b/cxs/uninstall.plesk.sh @@ -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" diff --git a/cxs/uninstall.vestacp.sh b/cxs/uninstall.vestacp.sh new file mode 100644 index 0000000..14b0546 --- /dev/null +++ b/cxs/uninstall.vestacp.sh @@ -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" diff --git a/osm/uninstall.cpanel.sh b/osm/uninstall.cpanel.sh new file mode 100644 index 0000000..f903003 --- /dev/null +++ b/osm/uninstall.cpanel.sh @@ -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" diff --git a/osm/uninstall.directadmin.sh b/osm/uninstall.directadmin.sh new file mode 100644 index 0000000..f3feb26 --- /dev/null +++ b/osm/uninstall.directadmin.sh @@ -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"