Mini Shell
Direktori : /etc/cron.daily/ |
|
Current File : //etc/cron.daily/imunify360.cron |
#!/usr/bin/bash
#
# imunify360 daily cron jobs.
#
# Usage:
# ./imunify360.cron [<logfile>]
#
# if logfile is not specified, the output will be discarded
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 "Starting daily imunify360 cron jobs at $(date)"
/usr/bin/imunify360-agent check-domains
PACKAGES="imunify360-firewall \
ai-bolit \
alt-php-hyperscan \
imunify-common \
imunify-notifier \
imunify-core \
imunify-ui \
imunify360-venv \
imunify-antivirus \
cloudlinux-backup-utils \
imunify-realtime-av \
imunify360-ossec \
imunify360-pam \
imunify360-php-i360 \
imunify360-webshield-bundle \
imunify360-unified-access-logger \
imunify-auditd-log-reader \
minidaemon \
alt-php-internal \
app-version-detector"
/usr/libexec/report-command-error /usr/bin/yum update --assumeyes $PACKAGES
echo "Finished daily imunify360 cron jobs at $(date)"
}
main >> "$log" 2>&1
Zerion Mini Shell 1.0