Skip to content
Permalink
Browse files

Update eFa-Post-Init

  • Loading branch information...
shawniverson committed Mar 2, 2019
1 parent 06611ac commit d8f9a134d89210e19f3f29bc6772b4110e3810a6
Showing with 11 additions and 2 deletions.
  1. +11 −2 rpmbuild/SOURCES/eFa-base-4.0.0/eFa/eFa-Post-Init
@@ -92,12 +92,21 @@ fi

/usr/bin/mailwatch/tools/Cron_jobs/mailwatch_geoip_update.php &

/usr/sbin/clamav-unofficial-sigs.sh &

/usr/bin/mailwatch/tools/Cron_jobs/mailwatch_update_sarules.php &

# Early synchronous tasks

# Initial clamav unofficial sigs download
sed -i '/^enable_random/ c\enable_random="no"' /etc/clamav-unoffical-sigs/master.conf
/usr/sbin/clamav-unofficial-sigs.sh
if [[ $? -ne 0 ]]; then
logger -p user.warn "eFa Post Init: ClamAV Unofficial Sigs download failed! Please fix me to finish initializing eFa. Retrying in 1 minute..."
sed -i "/^ echo ' running on ' . efa_version/ c\ echo ' running on ' . efa_version() . ' ...ERROR INITIALIZATING, CHECK clamav unofficial sigs... ';" /var/www/html/mailscanner/functions.php
rm -f /var/run/eFa-Post-Init.lock
exit 1
fi
sed -i '/^enable_random/ c\enable_random="yes"' /etc/clamav-unoffical-sigs/master.conf

if [[ ! -f /var/lib/clamav/main.cvd ]]; then
systemctl stop clamd@scan

0 comments on commit d8f9a13

Please sign in to comment.
You can’t perform that action at this time.