Server IP : 192.168.23.10  /  Your IP : 18.188.92.6
Web Server : Apache
System : Linux echo.premieradvertising.com 5.14.0-362.8.1.el9_3.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 7 14:54:22 EST 2023 x86_64
User : rrrallyteam ( 1049)
PHP Version : 8.1.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /etc/cron.daily/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //etc/cron.daily/imunify-antivirus.cron
#!/usr/bin/bash
#
# imunify-antivirus daily cron jobs.
#
# Usage:
#   ./imunify-antivirus.cron [<logfile>]
#
# if logfile is not specified, the output will be discarded
# If imunify360-firewall is installed, doing nothing
log=${1:-/dev/null}

main()
{
    /usr/libexec/report-command-error /opt/imunify360/venv/bin/python3 /opt/imunify360/venv/share/imunify360/scripts/delay_on_cron_call.py

    echo "Checking if imunify360-firewall is installed"
    if rpm -qi imunify360-firewall; then
        echo "Imunify360-installed, skipping antivirus cron"
        exit 0
    fi

    echo "Starting daily imunify-antivirus cron jobs at $(date)"
    /usr/bin/imunify360-agent check-domains

    PACKAGES="imunify-antivirus \
              ai-bolit \
              alt-php-hyperscan \
              imunify-common \
              imunify-notifier \
              imunify-core \
              imunify-ui \
              imunify360-venv \
              minidaemon \
              alt-php-internal \
              app-version-detector"

    /usr/libexec/report-command-error /usr/bin/yum update --assumeyes $PACKAGES

    /usr/bin/imunify-antivirus version
    echo "Finished daily imunify-antivirus cron jobs at $(date)"
}

main >> "$log" 2>&1