| Server IP : 172.67.178.83 / Your IP : 216.73.217.141 Web Server : Apache System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64 User : corbizre ( 1013) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/cagefs/scriptlets/ |
Upload File : |
#!/bin/bash
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
# RPM:
# $1 == 1 -- upgrade
# $1 == 0 -- uninstall
# DEB:
# $1 == remove/upgrade
if [[ $1 == 0 || $1 == "remove" ]]; then
/usr/sbin/cagefsctl --hook-remove
/bin/systemctl --no-reload disable cagefs.service > /dev/null 2>&1
/bin/systemctl stop cagefs.service > /dev/null 2>&1
/bin/systemctl --no-reload disable proxyexecd.service > /dev/null 2>&1
/bin/systemctl stop proxyexecd.service > /dev/null 2>&1
# remove /usr/share/cagefs-skeleton/dev/log from syslog config and restart syslog
/usr/share/cagefs-plugins/install-cagefs-plugin.py --remove-syslog-socket
# do actions for uninstalling cagefs package
/usr/share/cagefs-plugins/install-cagefs-plugin.py --uninstall
#LIBLVE-20
UPDATES='/etc/sysconfig/lve_updates'
sed -i -e '/LIBLVE20/d' "$UPDATES" > /dev/null 2>&1
/usr/sbin/cagefsctl --do-not-ask --remove-all
fi
# uninstall cronjob
rm -f /etc/cron.daily/cagefs.cron
#unmount skeleton
#cagefsctl --unmount-skel
# cagefs 3.0 is NOT installed yet (old version of cagefs is installed) ?
if [ ! -e /etc/cagefs/etc.safe ]; then
echo "Unmounting users..."
/usr/sbin/cagefsctl --unmount-all
fi
#uninstall plugin if exists
if [[ $1 == 0 || $1 == "remove" ]];then
if [ -e "/usr/share/cagefs-plugins/install-cagefs-plugin.py" ];then
/usr/share/cagefs-plugins/install-cagefs-plugin.py --delete
fi
if [ -e "/usr/local/lsws/conf/httpd_config.xml" ]; then
/bin/systemctl restart lsws
fi
fi
exit 0