Merge pull request #3320 from cevich/fix_ssh_race

Cirrus: Guarantee ssh is running for rootless
This commit is contained in:
OpenShift Merge Robot 2019-06-14 15:44:58 +02:00 committed by GitHub
commit 1322b41aa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -211,6 +211,8 @@ setup_rootless() {
# Works with older versions of bash
printf "${_env_var_name}=%q\n" "$(printenv $_env_var_name)" >> "/home/$ROOTLESS_USER/.bashrc"
done
echo "Ensure the systems ssh process is up and running"
systemctl --wait restart sshd # a regular 'start' could hang forever
}
# Helper/wrapper script to only show stderr/stdout on non-zero exit