Fix password set

This commit is contained in:
Joshua Boniface 2020-08-17 21:14:21 -04:00 committed by Joshua Boniface
parent 206eadad02
commit b5dc83fcb9
1 changed files with 3 additions and 3 deletions

View File

@ -349,7 +349,7 @@ echo -e "${target_interfaces_block}" | tee -a ${target}/etc/network/interfaces >
echo "done."
echo -n "Setting temporary 'root' password... "
echo "${root_password}" | chroot ${target} passwd --stdin root >&2
echo "root:${root_password}" | chroot ${target} chpasswd >&2
echo "done."
echo -n "Adding 'deploy' user... "
@ -361,7 +361,7 @@ wget -O ${target}/var/home/deploy/.ssh/authorized_keys ${target_keys_url}
chroot ${target} chmod 0600 /var/home/deploy/.ssh/authorized_keys
chroot ${target} chown -R deploy:operator /var/home/deploy
else
echo "${target_password}" | chroot ${target} passwd --stdin deploy >&2
echo "deploy:${target_password}" | chroot ${target} chpasswd >&2
fi
echo "done."