copr: login as "fedora" user instead of root

Otherwise we get following error

    Please login as the user "fedora" rather than the user "root".

Which messes up our variables - `$fedora` contains the `Please login
as the user "fedora" rather than the user "root".` warning and
therefore `new_volume_name` is

    copr-builder-x86_64-fPlease login as the user "fedora" rather than the user "root".-20201101_155103
This commit is contained in:
Jakub Kadlcik 2020-11-01 17:05:24 +01:00
parent 7d32a58788
commit 4f97eae38b

View file

@ -67,7 +67,7 @@ test -n "$vm_name"
ip=$(sed -n 's/.*VM_IP=\([0-9\.]\+\).*/\1/p' "$logfile" | head -1)
test -n "$ip"
fedora=$(ssh "root@$ip" 'rpm --eval %fedora')
fedora=$(ssh "fedora@$ip" 'rpm --eval %fedora')
new_volume_name="copr-builder-$arch-f$fedora-$(date +"%Y%m%d_%H%M%S")"