projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8ed1cbb
)
set +e in passwd code
author
Michael Prokop
<mika@grml.org>
Mon, 6 Nov 2006 11:00:40 +0000
(12:00 +0100)
committer
Michael Prokop
<mika@grml.org>
Mon, 6 Nov 2006 11:00:40 +0000
(12:00 +0100)
chroot-script
patch
|
blob
|
history
diff --git
a/chroot-script
b/chroot-script
index
0d75042
..
7fa771b
100644
(file)
--- a/
chroot-script
+++ b/
chroot-script
@@
-69,9
+69,10
@@
fi
echo "Activating shadow passwords."
shadowconfig on
echo "Setting password for user root:"
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 ""
passwd
echo ""
+set -e # restore default behaviour again
if ! [ -f /etc/hosts ] ; then
echo "Setting up /etc/hosts"
if ! [ -f /etc/hosts ] ; then
echo "Setting up /etc/hosts"