test: Set root password to 'foobar' in test Vm

This commit is contained in:
Matej Marusak 2021-01-07 13:58:42 +01:00
parent a54f341f46
commit 94a9748f3f

View File

@ -23,6 +23,9 @@ if ! id admin 2>/dev/null; then
echo admin:foobar | chpasswd
fi
# set root's password
echo root:foobar | chpasswd
# avoid sudo lecture during tests
su -c 'echo foobar | sudo --stdin whoami' - admin