| Server IP : 198.71.59.75 / Your IP : 216.73.216.240 Web Server : nginx/1.30.2 System : Linux elegant-dhawan.198-71-59-75.plesk.page 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64 User : realtyna_guys ( 10000) PHP Version : 8.2.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/lib/dpkg/info/ |
Upload File : |
#!/bin/bash
major_ver=8
minor_ver=2
patch_ver=28
php_version="${major_ver}${minor_ver}"
php_version_dot="${major_ver}.${minor_ver}"
php_version_slash="${major_ver}\.${minor_ver}"
__imunify=1
case "$1" in
remove|purge)
if [ -z "${__imunify}" ]; then
if [ -e /opt/alt/alt-php-config/alt-php-panel-configuration.py ]; then
/opt/alt/alt-php-config/alt-php-panel-configuration.py --mode=uninstall --php=${php_version}
fi
CONF_DIR='/etc/cl.selector'
CONF_PATH="$CONF_DIR/selector.conf"
VERS=${php_version_slash}
if [ -e $CONF_PATH ]; then
sed -i -e "/\s$VERS/d" $CONF_PATH
fi
if [ -x /usr/sbin/cagefsctl ]; then
/usr/sbin/cagefsctl --wait-lock --remove-cl-alt
if [ -x /usr/bin/selectorctl ]; then
if /usr/sbin/cagefsctl --wait-lock --list-enabled > /dev/null 2>&1; then
for account in `/usr/sbin/cagefsctl --wait-lock --list-enabled | grep -v ' enabled user(s)'`; do
selectorctl -u $account -b `selectorctl -c -u $account | awk '{ print $1 }'` || :
done
fi
fi
fi
fi
;;
esac