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
--- /dev/null
+#!/bin/bash
+# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
+##############################################################################
+# Copyright (c) 2016 The Linux Foundation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
+
+# INT-216 add write permission to /data
+mkdir -p /data
+
+# vim: sw=2 ts=2 sts=2 et :