Error in upgrade

Denis Beauchemin Denis.Beauchemin at
Mon Apr 13 14:04:58 UTC 2015


The semicolon is missing on this line:
for F in incoming quarantine incoming/Locks do
=> for F in incoming quarantine incoming/Locks; do

-----Message d'origine-----
De : MailScanner [mailto:mailscanner-bounces at] De la part de Jerry Benton
Envoyé : 13 avril 2015 09:57
À : MailScanner Discussion
Objet : Re: Error in upgrade

Thanks. There might be a syntax error in the spec file in the %post section. You upgrade should be ok though. Can someone double check this for me? Fresh eyes might help.

# Create the SpasAssassin sym-link to SADIR=`perl -MMail::SpamAssassin -e 'print Mail::SpamAssassin->new->first_existing_path(@Mail::SpamAssassin::site_rules_path)' 2>/dev/null` if [ "x$SADIR" = "x" ]; then
  echo No SpamAssassin installation found.
  #mkdir -p ${RPM_BUILD_ROOT}${SADIR}
  if [ -e ${SADIR}/ ]; then
    echo Leaving link or file alone.
    ln -s -f /etc/MailScanner/spam.assassin.prefs.conf ${SADIR}/
  echo SpamAssassin site rules found in ${SADIR} fi

# Create the incoming and quarantine dirs if needed for F in incoming quarantine incoming/Locks do
  if [ \! -d /var/spool/MailScanner/$F ]; then
    mkdir -p /var/spool/MailScanner/$F
    chown root.root /var/spool/MailScanner/$F
    chmod 0755 /var/spool/MailScanner/$F

Jerry Benton

More information about the MailScanner mailing list