diff options
author | brooks <brooks@FreeBSD.org> | 2004-01-05 19:14:47 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2004-01-05 19:14:47 +0000 |
commit | 37195ec3f88298c7cdfbce6d87c4147648241da4 (patch) | |
tree | e71a9903c4db8c86f01a0bfde265d531cb019b26 /etc/rc.d | |
parent | 2ffbc2464e12bb7cf32b64345eb2c12bd2fa7cc6 (diff) | |
download | FreeBSD-src-37195ec3f88298c7cdfbce6d87c4147648241da4.zip FreeBSD-src-37195ec3f88298c7cdfbce6d87c4147648241da4.tar.gz |
Don't run newaliases if sendmail_enable=NONE.
Submitted by: Matt Peterson <matt at peterson dot org>
Approved by: silence on freebsd-rc
Diffstat (limited to 'etc/rc.d')
-rw-r--r-- | etc/rc.d/diskless | 8 | ||||
-rw-r--r-- | etc/rc.d/resolv | 8 | ||||
-rw-r--r-- | etc/rc.d/tmp | 8 | ||||
-rw-r--r-- | etc/rc.d/var | 8 |
4 files changed, 28 insertions, 4 deletions
diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless index 6e4bcc6..ae55299 100644 --- a/etc/rc.d/diskless +++ b/etc/rc.d/diskless @@ -107,7 +107,13 @@ echo "+++ create lastlog" # Make sure our aliases database is uptodate, the aliases may have # been overriden in /conf. # -/usr/bin/newaliases +case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + ;; +*) + /usr/bin/newaliases + ;; +esac # XXX make sure to create one dir for each printer as requested by lpd # diff --git a/etc/rc.d/resolv b/etc/rc.d/resolv index 6e4bcc6..ae55299 100644 --- a/etc/rc.d/resolv +++ b/etc/rc.d/resolv @@ -107,7 +107,13 @@ echo "+++ create lastlog" # Make sure our aliases database is uptodate, the aliases may have # been overriden in /conf. # -/usr/bin/newaliases +case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + ;; +*) + /usr/bin/newaliases + ;; +esac # XXX make sure to create one dir for each printer as requested by lpd # diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index 6e4bcc6..ae55299 100644 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -107,7 +107,13 @@ echo "+++ create lastlog" # Make sure our aliases database is uptodate, the aliases may have # been overriden in /conf. # -/usr/bin/newaliases +case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + ;; +*) + /usr/bin/newaliases + ;; +esac # XXX make sure to create one dir for each printer as requested by lpd # diff --git a/etc/rc.d/var b/etc/rc.d/var index 6e4bcc6..ae55299 100644 --- a/etc/rc.d/var +++ b/etc/rc.d/var @@ -107,7 +107,13 @@ echo "+++ create lastlog" # Make sure our aliases database is uptodate, the aliases may have # been overriden in /conf. # -/usr/bin/newaliases +case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + ;; +*) + /usr/bin/newaliases + ;; +esac # XXX make sure to create one dir for each printer as requested by lpd # |