summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Grimberg <agrimberg@linuxfoundation.org>2017-08-11 11:25:47 -0700
committerAndrew Grimberg <agrimberg@linuxfoundation.org>2017-08-11 11:25:47 -0700
commit151ce55cb93a800b89803b3e27ef2e6908c4d4d0 (patch)
tree57206e56d0629b587e249647893d2ae30eec30a6
parent5b64a9fbcfc5d331d194032e196464a6d0cda970 (diff)
Force useradd to use added group
Since we are now making sure that the jenkins group exists before the jenkins user is created (likely because of opensuse not autogenerating the group?) we now need to force the user addition to use the group Change-Id: Ie900348fc43bf6b8bc5ebad2d4820ae705e52da4 Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
-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 cb45e7d0b..960b04b74 100755
--- a/jenkins-scripts/create_jenkins_user.sh
+++ b/jenkins-scripts/create_jenkins_user.sh
@@ -16,7 +16,7 @@
OS=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
groupadd jenkins
-useradd -m -s /bin/bash jenkins
+useradd -m -s /bin/bash -g jenkins jenkins
# Check if docker group exists
grep -q docker /etc/group