diff options
Diffstat (limited to 'jenkins-scripts/create_jenkins_user.sh')
-rwxr-xr-x | jenkins-scripts/create_jenkins_user.sh | 6 |
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 |