forked from neil/lxc-templates
Avoid warning 'stdin not a tty' in some cases
Signed-off-by: Tanya Degurechaff <34323200+TanyaEleventhGoddess@users.noreply.github.com>
This commit is contained in:
parent
c1552e32f2
commit
f91a618e02
@ -594,6 +594,11 @@ EOF
|
||||
|
||||
# Re-enable service startup
|
||||
rm "${rootfs}/usr/sbin/policy-rc.d"
|
||||
|
||||
# Fix by Greg Olsen, avoid warning 'stdin not a tty' in some cases
|
||||
if [[ -f "${rootfs}/root/.profile" ]]; then
|
||||
sed -i -e 's/^mesg n/test -t 0 \&\& mesg n/g' ${rootfs}/root/.profile
|
||||
fi
|
||||
|
||||
# end
|
||||
}
|
||||
|
@ -570,6 +570,11 @@ EOF
|
||||
|
||||
# Re-enable service startup
|
||||
rm "${rootfs}/usr/sbin/policy-rc.d"
|
||||
|
||||
# Fix by Greg Olsen, avoid warning 'stdin not a tty' in some cases
|
||||
if [[ -f "${rootfs}/root/.profile" ]]; then
|
||||
sed -i -e 's/^mesg n/test -t 0 \&\& mesg n/g' ${rootfs}/root/.profile
|
||||
fi
|
||||
|
||||
# end
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user