diff options
author | bsd <bsd@FreeBSD.org> | 2002-07-18 05:00:22 +0000 |
---|---|---|
committer | bsd <bsd@FreeBSD.org> | 2002-07-18 05:00:22 +0000 |
commit | e3e0f48306a0a4e9568a34dbef88affccb7579cf (patch) | |
tree | d6af43c5736d724e1e08960c9024fb5be5520f85 /etc/rc.d/tmp | |
parent | ebec404eb6c5f6872e0db2db5b5cf54f50dfd834 (diff) | |
download | FreeBSD-src-e3e0f48306a0a4e9568a34dbef88affccb7579cf.zip FreeBSD-src-e3e0f48306a0a4e9568a34dbef88affccb7579cf.tar.gz |
Apply same fix as Rev 1.19 of /etc/rc.diskless2: create sendmail
required directories if sendmail_enable is not set to "none".
Suggested by: gordon
Diffstat (limited to 'etc/rc.d/tmp')
-rw-r--r-- | etc/rc.d/tmp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index fc851316..c5cffb0 100644 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -73,6 +73,13 @@ mount_md ${varsize:=32m} /var 1 echo "+++ populate /var using /etc/mtree/BSD.var.dist" /usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var case ${sendmail_enable} in +[Nn][Oo][Nn][Ee]) + ;; +*) + /usr/sbin/mtree -deU -f /etc/mtree/BSD.sendmail.dist -p / + ;; +esac + echo "+++ create log files based on the contents of /etc/newsyslog.conf" LOGFILES=`/usr/bin/awk '$1 != "#" { printf "%s ", $1 } ' /etc/newsyslog.conf` if [ -n "$LOGFILES" ]; then |