summaryrefslogtreecommitdiffstats
path: root/jenkins-scripts
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2017-08-11 11:15:09 -0700
committerAndrew Grimberg <agrimberg@linuxfoundation.org>2017-08-11 11:15:09 -0700
commit5b64a9fbcfc5d331d194032e196464a6d0cda970 (patch)
treebd431a06e41b9153040b4f1066764489ba298d59 /jenkins-scripts
parentf7b427922a31e53c0627afb29f7878b52b55c08d (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-xjenkins-scripts/create_jenkins_user.sh2
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