diff options
author | Andrew Grimberg <agrimberg@linuxfoundation.org> | 2017-08-11 11:15:09 -0700 |
---|---|---|
committer | Andrew Grimberg <agrimberg@linuxfoundation.org> | 2017-08-11 11:15:09 -0700 |
commit | 5b64a9fbcfc5d331d194032e196464a6d0cda970 (patch) | |
tree | bd431a06e41b9153040b4f1066764489ba298d59 /jenkins-scripts | |
parent | f7b427922a31e53c0627afb29f7878b52b55c08d (diff) |
Fix OS_USER home directory
Non-opensuse cloud users are rooted out of home since they aren't using
root
Change-Id: Ied20ea275a4f30b49251ea485c6a9eef02584e4d
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Diffstat (limited to 'jenkins-scripts')
-rwxr-xr-x | jenkins-scripts/create_jenkins_user.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jenkins-scripts/create_jenkins_user.sh b/jenkins-scripts/create_jenkins_user.sh index 2a8655b6..cb45e7d0 100755 --- a/jenkins-scripts/create_jenkins_user.sh +++ b/jenkins-scripts/create_jenkins_user.sh @@ -41,7 +41,7 @@ if [ "$OS" = "opensuse" ]; then OS_USER="root" else - OS_USER="$OS" + OS_USER="home/${OS}" fi #Generate ssh key for use by Robot jobs cp -r /${OS_USER}/.ssh/authorized_keys /home/jenkins/.ssh/authorized_keys |