mirror of
https://github.com/lxc/lxc-templates.git
synced 2025-01-05 13:20:17 +00:00
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
@ -595,6 +595,11 @@ EOF
|
|||||||
# Re-enable service startup
|
# Re-enable service startup
|
||||||
rm "${rootfs}/usr/sbin/policy-rc.d"
|
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
|
# end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -571,6 +571,11 @@ EOF
|
|||||||
# Re-enable service startup
|
# Re-enable service startup
|
||||||
rm "${rootfs}/usr/sbin/policy-rc.d"
|
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
|
# end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user