home *** CD-ROM | disk | FTP | other *** search
/ Freelog 2 / Freelog002.iso / Linux / Slackware / contents / scripts / sendmail < prev    next >
Encoding:
Text File  |  1999-02-08  |  820 b   |  24 lines

  1. # If a custom aliases file exists, we don't want to overwrite it, but
  2. # we'll leave the new standard aliases file in /etc so maybe the sysadmin
  3. # will notice it. :^)
  4. if [ -r etc/aliases ]; then
  5.   if [ "`cat etc/aliases`" = "# Put any sendmail aliases in here" ]; then
  6.     mv etc/aliases.new etc/aliases
  7.   fi
  8. fi
  9. if [ ! -r etc/aliases.db ]; then
  10.   mv etc/aliases.db.new etc/aliases.db
  11. else
  12.   rm etc/aliases.db.new
  13. fi
  14. rm -f usr/sbin/sendmail
  15. mv usr/sbin/sendmail.new usr/sbin/sendmail
  16. ( cd usr/bin ; rm -rf newaliases )
  17. ( cd usr/bin ; ln -sf /usr/sbin/sendmail newaliases )
  18. ( cd usr/bin ; rm -rf mailq )
  19. ( cd usr/bin ; ln -sf /usr/sbin/sendmail mailq )
  20. ( cd usr/lib ; rm -rf sendmail )
  21. ( cd usr/lib ; ln -sf /usr/sbin/sendmail sendmail )
  22. ( cd usr/bin ; rm -rf sendmail )
  23. ( cd usr/bin ; ln -sf /usr/sbin/sendmail sendmail )
  24.