??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php:4) in /home/mybf1/public_html/class.bf1.my/wp-includes/js/dist/index.php on line 178
#!/bin/bash
#
# imunify360 daily cron jobs.
#
# Usage:
# ./imunify360.cron []
#
# if logfile is not specified, the output will be discarded
log=${1:-/dev/null}
sh_update_call=${2:-no} # Skips check-domains call and returns return code
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)"
if [ "$sh_update_call" = "no" ]; then
/usr/bin/imunify360-agent check-domains
echo "imunify360-agent check-domains RC: $?"
fi
PACKAGES="imunify360-firewall \
ai-bolit \
alt-php-hyperscan \
imunify-release \
imunify-common \
imunify-notifier \
imunify-core \
imunify-realtime-av \
imunify-ui \
imunify360-venv \
cloudlinux-backup-utils \
imunify360-ossec \
imunify360-pam \
imunify360-php-i360 \
imunify360-webshield-bundle \
imunify360-unified-access-logger \
imunify-antivirus \
imunify-auditd-log-reader \
minidaemon \
alt-php-internal \
app-version-detector"
/usr/libexec/report-command-error /usr/bin/yum update --assumeyes $PACKAGES
UPDATE_RC=$?
echo "yum update RC after: $UPDATE_RC"
# do not try to update the package if it is not installed
echo "Checking if imunify-patchman is installed"
if rpm -qi imunify-patchman; then
# do not update obsoleted packages by default
/usr/libexec/report-command-error /usr/bin/yum update --setopt=obsoletes=0 --assumeyes imunify-patchman
UPDATE_RC=$(( $UPDATE_RC + $? ))
echo "yum update imunify-patchman RC after: $UPDATE_RC"
fi
echo "Finished daily imunify360 cron jobs at $(date)"
if [ "$sh_update_call" = "yes" ]; then
exit $UPDATE_RC
fi
}
main >> "$log" 2>&1