summaryrefslogtreecommitdiffstats
path: root/jenkins-scripts/create_jenkins_user.sh
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-09-19 11:46:08 -0700
committerAndrew Grimberg <agrimberg@linuxfoundation.org>2017-09-19 14:48:48 -0700
commit3447be1e3489f24f56a08c84fd3a03e162f8b231 (patch)
tree71c2bc0cb084283b5191265a14dc95529ed98d11 /jenkins-scripts/create_jenkins_user.sh
parent23aa48dddf00b391b324563a8d8807ed0b360eb8 (diff)
Add write permission to /data
Create a /data directory on the VM that some ONAP containers need to mount to retrieve environment configuration data. Change-Id: I4ec91822f841c4b269d768f660f47ffecd243267 Issue-ID: INT-216 Signed-off-by: Gary Wu <gary.i.wu@huawei.com> Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Diffstat (limited to 'jenkins-scripts/create_jenkins_user.sh')
-rwxr-xr-xjenkins-scripts/create_jenkins_user.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/jenkins-scripts/create_jenkins_user.sh b/jenkins-scripts/create_jenkins_user.sh
index 86a5c92d0..10e47091c 100755
--- a/jenkins-scripts/create_jenkins_user.sh
+++ b/jenkins-scripts/create_jenkins_user.sh
@@ -23,6 +23,12 @@ if [ "$?" == '0' ]
then
# Add jenkins user to docker group
usermod -a -G docker jenkins
+
+ # If /data exists it needs to be owned by jenkins
+ if [ -d /data ]
+ then
+ chown jenkins:jenkins /data
+ fi
fi
# Check if mock group exists