Error in upgrade

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


Jerry,

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

Denis
-----Message d'origine-----
De : MailScanner [mailto:mailscanner-bounces at lists.mailscanner.info] 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 mailscanner.cf 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.
else
  #mkdir -p ${RPM_BUILD_ROOT}${SADIR}
  if [ -e ${SADIR}/mailscanner.cf ]; then
    echo Leaving mailscanner.cf link or file alone.
  else
    ln -s -f /etc/MailScanner/spam.assassin.prefs.conf ${SADIR}/mailscanner.cf
  fi
  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
  fi
done

-
Jerry Benton
www.mailborder.com




More information about the MailScanner mailing list