Script d'installation du paquetage "sendmail"


echo -n "Updating etc/rc.config..."
if test -x bin/fillup ; then
  if test -e etc/SuSE-release ; then
    if test -e etc/rc.config.d/sendmail.rc.config ; then
      bin/fillup -q -t       -d "=" etc/rc.config.d/sendmail.rc.config var/adm/fillup-templates/rc.config.sendmail
    else
      bin/fillup -q -t -r -i -d "=" etc/rc.config var/adm/fillup-templates/rc.config.sendmail etc/rc.config.d/sendmail.rc.config
      mv etc/rc.config.new etc/rc.config
    fi
  else
    bin/fillup -q -d "=" etc/rc.config var/adm/fillup-templates/rc.config.sendmail
  fi
  echo "Done."
else
  echo 
  echo "ERROR: fillup not found. This should not happen. Please compare"
  echo "etc/rc.config and var/adm/fillup-templates/rc.config.sendmail and"
  echo "update by hand."
fi
test -e etc/SuSE-release || exit 0
MAILS_SPOOLED=false
for i in var/mqueue/* ; do
    test -f $i && {
        MAILS_SPOOLED=true
        break
    }
done
if test "$MAILS_SPOOLED" = true ; then
    mkdir -p var/adm/notify/messages
    cat << EOT > var/adm/notify/messages/Mailqueue-changes
Hallo,  (english text below)
Ab der SuSE Linux 6.0 haben wir das Verzeichnis in dem sendmail seine
Mail queue zwischenspeichert von /var/mqueue nach /var/spool/mqueue
verschoben.  In Ihrem System scheinen während des Updates noch Mails
in der Queue gesteckt zu haben. Folgendermassen können Sie diese wieder
in die Queue einreihen (als Benutzer root):
   rcsendmail stop
   mv /var/mqueue/* /var/spool/mqueue
   rcsendmail start
Hello,
With 6.0 of SuSE Linux we moved the spool directory for sendmail from
/var/mqueue to /var/spool/mqueue.  Your system seems to have spooled
mails in /var/mqueue.  Please move them to /var/spool/mqueue with
(as user root):
   rcsendmail stop
   mv /var/mqueue/* /var/spool/mqueue
   rcsendmail start
Have a lot of fun...
                          Your SuSE Team
EOT
fi


(c) SuSE - Dernière mise à jour: 31.03.2000 12:55;