GPL v3 Release

This commit is contained in:
chirpy
2025-08-28 15:15:56 +01:00
parent c15ade09f6
commit 2923c43f8f
494 changed files with 106870 additions and 58 deletions

View File

@@ -0,0 +1,130 @@
#!/usr/local/cpanel/3rdparty/bin/perl
###############################################################################
# Copyright (C) 2006-2025 Jonathan Michaelson
#
# https://github.com/waytotheweb/scripts
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses>.
###############################################################################
# start main
use strict;
use Path::Tiny;
use IPC::Open3;
use Fcntl qw(:DEFAULT :flock);
our ($installed, $option, $cpanel);
$installed = 0;
if (-d "/usr/mailscanner/") {$installed = 1}
$cpanel = 1;
unless (-e "/usr/local/cpanel/version") {$cpanel = 0}
print "Removing MailScanner...\n\n";
if ($cpanel) {
print "Updating Config and Restarting Exim...\n";
unlink ("/etc/antivirus.empty");
open (IN,"<", "/etc/exim.conf.localopts");
flock (IN, LOCK_SH);
my @localopts = <IN>;
close (IN);
chomp @localopts;
sysopen (OUT, "/etc/exim.conf.localopts", O_WRONLY | O_CREAT | O_TRUNC);
flock (OUT, LOCK_EX);
foreach my $line (@localopts) {
if ($line !~ /^systemfilter/) {print OUT "$line\n"}
}
print OUT "systemfilter=/etc/antivirus.exim\n";
close OUT;
unlink ("/etc/exim_outgoing.conf");
unlink ("/etc/exiscandisable");
open (IN, "<", "/etc/exim.conf.local");
flock (IN, LOCK_SH);
my @exim_conf_local = <IN>;
close (IN);
chomp @exim_conf_local;
sysopen (OUT, "/etc/exim.conf.local", O_WRONLY | O_CREAT | O_TRUNC);
flock (OUT, LOCK_EX);
foreach my $line (@exim_conf_local) {
if ($line =~ /message_logs = false/) {next}
if ($line =~ /queue_only_override = false/) {next}
if ($line =~ /\.include_if_exists \/usr\/msfe\/spambox\.conf/) {next}
print OUT "$line\n";
}
close (OUT);
foreach my $file ("/usr/local/cpanel/etc/exim/acls/ACL_MAIL_PRE_BLOCK/custom_begin_mail_pre", "/usr/local/cpanel/etc/exim/acls/ACL_MAIL_POST_BLOCK/custom_begin_mail_post") {
open (my $ACL, "<", $file);
flock ($ACL, LOCK_SH);
my @acl_config = <$ACL>;
close ($ACL);
chomp @acl_config;
sysopen (OUT, "$file", O_WRONLY | O_CREAT | O_TRUNC);
flock (OUT, LOCK_EX);
foreach my $line (@acl_config) {
if ($line =~ /\.include_if_exists \/usr\/msfe\/mailscannerq\.conf/) {next}
print OUT "$line\n";
}
close (OUT);
}
system("/scripts/buildeximconf");
system("/scripts/restartsrv_exim");
print "Done\n";
open (IN,"<", "/etc/chkserv.d/chkservd.conf");
flock (IN, LOCK_SH);
my @chkservd = <IN>;
close (IN);
chomp @chkservd;
sysopen (OUT, "/etc/chkserv.d/chkservd.conf", O_WRONLY | O_CREAT | O_TRUNC);
flock (OUT, LOCK_EX);
foreach my $line (@chkservd) {
if ($line !~ /^mailscanner/) {print OUT "$line\n"}
}
close OUT;
}
unlink ("/usr/msfe/mailscannerq");
print "Stopping MailScanner and cron jobs...\n";
system ("killall", "-9", "MailScanner");
unlink ("/etc/cron.daily/clean.quarantine.cron");
unlink ("/etc/cron.daily/clean.incoming.cron");
unlink ("/etc/cron.hourly/update_virus_scanners");
unlink ("/etc/chkserv.d/mailscanner");
unlink ("/var/run/chkservd/mailscanner");
unlink "/etc/mail/spamassassin/mailscanner.cf";
print "Done\n";
print "Removing MailScanner directories...\n";
if (-d "/usr/mailscanner/") {system ("/bin/rm -Rf /usr/mailscanner/")}
if (-d "/var/spool/MailScanner/") {system ("/bin/rm -Rf /var/spool/MailScanner/")}
if (-d "/var/spool/exim_incoming/") {
system ("/bin/cp -avf /var/spool/exim_incoming/input/* /var/spool/exim/input/");
system ("/bin/rm -Rf /var/spool/exim_incoming/");
}
if (-d "/var/spool/exim/mailscanner/") {
system ("/bin/cp -avf /var/spool/exim/mailscanner/input/* /var/spool/exim/input/");
system ("/bin/rm -Rf /var/spool/exim/mailscanner/");
}
if (-d "/var/spool/mqueue/") {system ("/bin/rm -Rf /var/spool/mqueue/")}
print "Done\n";
print "All Done\n";
exit;

View File

@@ -0,0 +1,63 @@
#!/bin/sh
###############################################################################
# Copyright (C) 2006-2025 Jonathan Michaelson
#
# https://github.com/waytotheweb/scripts
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses>.
###############################################################################
PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
if [ ! -e "msuninstall.pl" ]; then
echo "Download msuninstall.pl here first"
exit
fi
if [ -e "/usr/local/cpanel/version" ]; then
sed -i 's%/usr/bin/perl%/usr/local/cpanel/3rdparty/bin/perl%' msuninstall.pl
else
sed -i 's%/usr/local/cpanel/3rdparty/bin/perl%/usr/bin/perl%' msuninstall.pl
fi
if [ -e "/usr/msfe/uninstall.msfe.sh" ]; then
sh /usr/msfe/uninstall.msfe.sh
fi
rm -Rfv /usr/msfe
rm -f /etc/cron.daily/mailscanner_daily.cron
if test `cat /proc/1/comm` = "systemd"
then
systemctl disable MailScanner.service
systemctl stop MailScanner.service
rm -f /usr/lib/systemd/system/MailScanner.service
systemctl daemon-reload
else
service MailScanner stop
chkconfig MailScanner off
chkconfig MailScanner --del
rm -f /etc/init.d/MailScanner
fi
if [ -e "/usr/local/cpanel/version" ]; then
rm -f /etc/chkservd.d/mailscanner
rm -f /var/run/chkservd/mailscanner
fi
chmod +x msuninstall.pl
./msuninstall.pl 3
echo
echo "All done."

52
uninstallers/README.md Normal file
View File

@@ -0,0 +1,52 @@
# Scripts for former Way to the Web Limited Products
### The scripts in this repository will uninstall each product
## MailScanner and MSFE (MailScanner Front-End):
```
curl -sL -o msuninstall.pl https://github.com/waytotheweb/scripts/blob/main/uninstallers/MailScanner/msuninstall.pl?raw=true
curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/MailScanner/msuninstall.sh?raw=true | bash
```
## cxs:
```
bash /etc/cxs/uninstall.sh
```
## osm:
```
bash /etc/osm/uninstall.sh
```
## csf:
```
bash /etc/csf/uninstall.sh
```
## cmc:
```
curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/cmc/cmc_uninstall.sh?raw=true | bash
```
## cmm:
```
curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/cmm/cmm_uninstall.sh?raw=true | bash
```
## cmq:
```
curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/cmq/cmq_uninstall.sh?raw=true | bash
```
## cse:
```
curl -sL https://github.com/waytotheweb/scripts/blob/main/uninstallers/cse/cse_uninstall.sh?raw=true | bash
```

View File

@@ -0,0 +1,39 @@
#!/bin/bash
###############################################################################
# Copyright (C) 2006-2025 Jonathan Michaelson
#
# https://github.com/waytotheweb/scripts
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses>.
###############################################################################
if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then
cd /
/usr/local/cpanel/bin/unregister_appconfig cmc
else
if [ ! -e "/var/cpanel/apps/cmc.conf" ]; then
/bin/rm -fv /var/cpanel/apps/cmc.conf
fi
fi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmc.cgi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmcversion.txt
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmc
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc.cgi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmcversion.txt
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmc
echo "ConfigServer Mod Security has been uninstalled."
exit

View File

@@ -0,0 +1,37 @@
#!/bin/sh
# Copyright (C) 2006-2025 Jonathan Michaelson
#
# https://github.com/waytotheweb/scripts
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses>.
if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then
cd /
/usr/local/cpanel/bin/unregister_appconfig cmm
else
if [ ! -e "/var/cpanel/apps/cmm.conf" ]; then
/bin/rm -fv /var/cpanel/apps/cmm.conf
fi
fi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmm.cgi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmmversion.txt
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmm
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmm.cgi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmmversion.txt
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmm
echo "ConfigServer Mail Manage has been uninstalled."
exit

View File

@@ -0,0 +1,56 @@
#!/bin/sh
###############################################################################
# Copyright (C) 2006-2025 Jonathan Michaelson
#
# https://github.com/waytotheweb/scripts
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses>.
###############################################################################
PATH=$PATH:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
if [ -e "/usr/local/cpanel/version" ]; then
echo "Running cmq cPanel uninstaller"
echo
if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then
cd /
/usr/local/cpanel/bin/unregister_appconfig cmq
else
if [ ! -e "/var/cpanel/apps/cmq.conf" ]; then
/bin/rm -fv /var/cpanel/apps/cmq.conf
fi
fi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmq.cgi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmqversion.txt
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmq
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmq.cgi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmqversion.txt
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cmq
elif [ -e "/usr/local/directadmin/directadmin" ]; then
echo "Running cmq DirectAdmin uninstaller"
echo
/bin/rm -Rfv /usr/local/directadmin/plugins/cmq
fi
/bin/rm -Rfv /etc/cmq
echo "ConfigServer Mail Queues has been uninstalled."
exit

View File

@@ -0,0 +1,37 @@
#!/bin/sh
# Copyright (C) 2006-2025 Jonathan Michaelson
#
# https://github.com/waytotheweb/scripts
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, see <https://www.gnu.org/licenses>.
if [ -e "/usr/local/cpanel/bin/unregister_appconfig" ]; then
cd /
/usr/local/cpanel/bin/unregister_appconfig cse
else
if [ ! -e "/var/cpanel/apps/cse.conf" ]; then
/bin/rm -fv /var/cpanel/apps/cse.conf
fi
fi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cse.cgi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cseversion.txt
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cse
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cse.cgi
/bin/rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cseversion.txt
/bin/rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/configserver/cse
echo "ConfigServer Explorer has been uninstalled."
exit

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View File

@@ -0,0 +1,61 @@
#!/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
echo
echo "...Done"

View 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/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
echo
echo "...Done"

View File

@@ -0,0 +1,65 @@
#!/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
echo
echo "...Done"

View File

@@ -0,0 +1,55 @@
#!/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
echo
echo "...Done"

View File

@@ -0,0 +1,54 @@
#!/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
echo
echo "...Done"

View 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
/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
echo
echo "...Done"

View 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
/usr/sbin/plesk bin extension -u cxs
rm -fv /usr/local/psa/admin/bin/cxs.pl /usr/local/psa/admin/sbin/cxs.pl
echo
echo "...Done"

View File

@@ -0,0 +1,54 @@
#!/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
echo
echo "...Done"

View File

@@ -0,0 +1,35 @@
#!/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
echo
echo "...Done"

View File

@@ -0,0 +1,27 @@
#!/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
echo
echo "...Done"