From 85957d437301f65bb5a1dc4d7b34e285c6f9cc92 Mon Sep 17 00:00:00 2001 From: r00t Date: Mon, 22 Dec 2014 15:29:52 -0500 Subject: [PATCH] fixing chroot logging --- lib/mk.chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mk.chroot.sh b/lib/mk.chroot.sh index 3081058..1070b16 100755 --- a/lib/mk.chroot.sh +++ b/lib/mk.chroot.sh @@ -212,7 +212,7 @@ EOF echo "${REGUSR} ALL=(ALL) ALL" >> ${i}/etc/sudoers.d/${REGUSR} if [ -n "${REGUSR_PASS}" ]; then - ${CHROOTCMD} ${i}/ "echo ${REGUSR}:${REGUSR_PASS} | chpasswd -e" + ${CHROOTCMD} ${i}/ "echo ${REGUSR}:${REGUSR_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1 fi # COMMENT THIS LINE IF YOU WANT TO SET A ROOT PASSWORD ${CHROOTCMD} ${i}/ usermod -L root