Browse Source

fix password creation

Bob Mottram 7 years ago
parent
commit
6a48ff3ad2
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/freedombone-image-customise

+ 2
- 2
src/freedombone-image-customise View File

@@ -376,7 +376,7 @@ EOF
376 376
 
377 377
       # change the password for the admin user
378 378
       echo -n "    echo \"${MY_USERNAME}:";
379
-      echo "\$(printf \"%s\" \"\$(cat ~/login.txt)\")|chpasswd";
379
+      echo "\$(printf \"%s\" \"\$(cat ~/login.txt)\")\"|chpasswd";
380 380
 
381 381
       # update before continuing
382 382
       echo "    cd /root/${PROJECT_NAME}";
@@ -2002,7 +2002,7 @@ chroot "$rootdir" /usr/bin/env -i \
2002 2002
     PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
2003 2003
 echo "export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:" >> "$rootdir/root/.bashrc"
2004 2004
 chroot "$rootdir" adduser --gecos "$username" --disabled-password "$username"
2005
-echo "$username":"$password" | chroot "$rootdir" /usr/sbin/chpasswd
2005
+echo "$username:$password" | chroot "$rootdir" /usr/sbin/chpasswd
2006 2006
 chroot "$rootdir" adduser "$username" sudo
2007 2007
 
2008 2008
 if [ ! "$DEBIAN_REPO" ]; then