Now that we want to actually use the random password for tests, we need
to correctly encrypt it, instead of just setting it to a random string
that's not the "locked" value.
# value, so unless we reset it here most of the tests will fail.
case "${target}" in
ubuntu-*)
- echo ${target} target: setting random password string.
- pw=$(openssl rand -base64 9)
+ echo ${target} target: setting random password.
+ openssl rand -base64 9 >regress/password
+ pw=$(tr -d '\n' <regress/password | openssl passwd -6 -stdin)
sudo usermod --password "${pw}" runner
sudo usermod --unlock runner
- echo "${pw}" > regress/password
;;
esac
fi