From 3e5f8f2863a824e35b3c70d5ec1b0edb24ee8647 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Mon, 6 Nov 2006 12:00:40 +0100 Subject: [PATCH] set +e in passwd code --- chroot-script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chroot-script b/chroot-script index 0d75042..7fa771b 100644 --- a/chroot-script +++ b/chroot-script @@ -69,9 +69,10 @@ fi echo "Activating shadow passwords." shadowconfig on echo "Setting password for user root:" -# TODO: typing the wrong password will exit chroot script +set +e # do not exit if passwd returns error due to missmatching passwords passwd echo "" +set -e # restore default behaviour again if ! [ -f /etc/hosts ] ; then echo "Setting up /etc/hosts" -- 2.1.4