Ensure that /var/log/lastlog exists so that login doesn't complain.
Submitted by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 2 weeks
This commit is contained in:
parent
cf4f60e13f
commit
7bba641f32
@ -66,6 +66,9 @@ mount_md ${varsize:=32m} /var 1
|
|||||||
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
|
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
|
||||||
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
|
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
|
||||||
case ${sendmail_enable} in
|
case ${sendmail_enable} in
|
||||||
|
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
|
||||||
/usr/bin/touch $LOGFILES
|
/usr/bin/touch $LOGFILES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -66,6 +66,9 @@ mount_md ${varsize:=32m} /var 1
|
|||||||
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
|
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
|
||||||
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
|
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
|
||||||
case ${sendmail_enable} in
|
case ${sendmail_enable} in
|
||||||
|
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
|
||||||
/usr/bin/touch $LOGFILES
|
/usr/bin/touch $LOGFILES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -66,6 +66,9 @@ mount_md ${varsize:=32m} /var 1
|
|||||||
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
|
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
|
||||||
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
|
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
|
||||||
case ${sendmail_enable} in
|
case ${sendmail_enable} in
|
||||||
|
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
|
||||||
/usr/bin/touch $LOGFILES
|
/usr/bin/touch $LOGFILES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -66,6 +66,9 @@ mount_md ${varsize:=32m} /var 1
|
|||||||
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
|
echo "+++ populate /var using /etc/mtree/BSD.var.dist"
|
||||||
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
|
/usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var
|
||||||
case ${sendmail_enable} in
|
case ${sendmail_enable} in
|
||||||
|
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
|
||||||
/usr/bin/touch $LOGFILES
|
/usr/bin/touch $LOGFILES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -67,6 +67,9 @@ if [ -n "$LOGFILES" ]; then
|
|||||||
/usr/bin/touch $LOGFILES
|
/usr/bin/touch $LOGFILES
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "+++ create lastlog"
|
||||||
|
/usr/bin/touch /var/log/lastlog
|
||||||
|
|
||||||
mount -a # chown and chgrp are in /usr
|
mount -a # chown and chgrp are in /usr
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user