From 6a48ff3ad2da6063faf59dc9905ae1709ef3391c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 3 Mar 2018 17:46:24 +0000 Subject: [PATCH] fix password creation --- src/freedombone-image-customise | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 277cd292..7deda5e2 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -376,7 +376,7 @@ EOF # change the password for the admin user echo -n " echo \"${MY_USERNAME}:"; - echo "\$(printf \"%s\" \"\$(cat ~/login.txt)\")|chpasswd"; + echo "\$(printf \"%s\" \"\$(cat ~/login.txt)\")\"|chpasswd"; # update before continuing echo " cd /root/${PROJECT_NAME}"; @@ -2002,7 +2002,7 @@ chroot "$rootdir" /usr/bin/env -i \ PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin echo "export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:" >> "$rootdir/root/.bashrc" chroot "$rootdir" adduser --gecos "$username" --disabled-password "$username" -echo "$username":"$password" | chroot "$rootdir" /usr/sbin/chpasswd +echo "$username:$password" | chroot "$rootdir" /usr/sbin/chpasswd chroot "$rootdir" adduser "$username" sudo if [ ! "$DEBIAN_REPO" ]; then