From 84ba68975a546d8f2d2c2451e128ab3aa9952710 Mon Sep 17 00:00:00 2001 From: r00t Date: Tue, 23 Dec 2014 16:34:06 -0500 Subject: [PATCH] dang it, 'root' is not a variable. --- lib/mk.chroot.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mk.chroot.sh b/lib/mk.chroot.sh index 738018b..8170af2 100755 --- a/lib/mk.chroot.sh +++ b/lib/mk.chroot.sh @@ -203,6 +203,7 @@ EOF set +e ${CHROOTCMD} ${i}/ bash -c "yes '' | yaourt -S --needed --noconfirm ${PKGLIST}" >> "${LOGFILE}.${FUNCNAME}" 2>&1 for x in $(find ${i}/etc/ -type f -iname "*.pacorig");do mv -f ${x} ${x%%.pacorig} ; done + # User creation set -e echo -n "...Creating ${REGUSR} user..." ${CHROOTCMD} ${i}/ useradd -m -s /bin/bash -c "Default user" ${REGUSR} >> "${LOGFILE}.${FUNCNAME}" 2>&1 @@ -221,7 +222,7 @@ EOF fi if [ -n "${ROOT_PASS}" ]; then - ${CHROOTCMD} ${i}/ "echo ${root}:${ROOT_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1 + ${CHROOTCMD} ${i}/ "echo root:${ROOT_PASS} | chpasswd -e" >> "${LOGFILE}.${FUNCNAME}" 2>&1 elif [[ "${ROOT_PASS}" == '{[BLANK]}' ]]; then continue