Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #258 from E-F-A/3.0.0.9
Browse files Browse the repository at this point in the history
Fix paths in update_spamassassin
  • Loading branch information
shawniverson committed Mar 19, 2016
2 parents 2dad45f + 697a3b0 commit e24dede
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions update/versions/EFA-Version-Upgrade-3.0.0.9
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,14 @@ EOF
rm -f /usr/local/share/man/man3/Test::Manifest.3
rm -f /usr/local/share/man/man3/WWW::RobotRules*.3pm
rm -f /usr/local/share/man/man3/YAML*.3pm

# Update SA path in MailWatch
sed -i "/^define('SA_DIR',/ c\define('SA_DIR', '/usr/bin/');" /var/www/html/mailscanner/conf.php


# Update SA path in update_spamassassin
sed -i "/^SAUPDATE=/ c\SAUPDATE=/usr/bin/sa-update" /etc/sysconfig/update_spamassassin
sed -i "/^SACOMPILE=/ c\SACOMPILE=/usr/bin/sa-compile" /etc/sysconfig/update_spamassassin

# cleanup /var/lib/spamassassin and run updates
rm -rf /var/lib/spamassassin/*
sa-update
Expand Down

0 comments on commit e24dede

Please sign in to comment.