fixing chroot logging

This commit is contained in:
brent s. 2014-12-22 15:29:52 -05:00
parent ddfdf83463
commit 85957d4373

View File

@ -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