Skip to content

Commit

Permalink
Update eFa-Post-Init
Browse files Browse the repository at this point in the history
  • Loading branch information
shawniverson committed Mar 2, 2019
1 parent 06611ac commit d8f9a13
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions rpmbuild/SOURCES/eFa-base-4.0.0/eFa/eFa-Post-Init
Expand Up @@ -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

Expand Down

0 comments on commit d8f9a13

Please sign in to comment.