mirror of
https://github.com/waytotheweb/scripts.git
synced 2026-03-29 18:17:07 +00:00
GPL v3 Release
This commit is contained in:
35
uninstallers/osm/uninstall.cpanel.sh
Normal file
35
uninstallers/osm/uninstall.cpanel.sh
Normal 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"
|
||||
27
uninstallers/osm/uninstall.directadmin.sh
Normal file
27
uninstallers/osm/uninstall.directadmin.sh
Normal 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"
|
||||
Reference in New Issue
Block a user