%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /etc/cron.daily/
Upload File :
Create Path :
Current File : //etc/cron.daily/imunify-antivirus.cron

#!/bin/bash
#
# imunify-antivirus daily cron jobs.
#
# Usage:
#   ./imunify-antivirus.cron [<logfile>]
#
# if logfile is not specified, the output will be discarded
log=${1:-/dev/null}

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

    # keep the package list in sync with the uninstall script
    /opt/alt/python38/share/imunify360/scripts/report-command-error \
                    /usr/bin/yum update \
                    imunify-antivirus \
                    ai-bolit          \
                    imunify-common    \
                    imunify-notifier  \
                    imunify360-venv   \
                    --assumeyes

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

main >> "$log" 2>&1

Zerion Mini Shell 1.0