summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authoragardner <agardner@linuxfoundation.org>2017-05-31 14:37:30 -0400
committerAric Gardner <agardner@linuxfoundation.org>2017-06-29 19:01:52 +0000
commita7f82c093fab2ad19c7ffb0a81ec5756e91e73ae (patch)
treeda21b1e79c9f4e0c328c58573ec7617b7765cbfa /utils
parentc0267d24edaae27ae5aea685c3fe6df973a578f7 (diff)
this script is called by jenkins user
we need to sudo the mkdir Change-Id: I4db726e92566917ecd384884cf1a3c60354c2065 Signed-off-by: agardner <agardner@linuxfoundation.org>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/jenkins-jnlp-connect.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/jenkins-jnlp-connect.sh b/utils/jenkins-jnlp-connect.sh
index 8fce2e021..c46ca89f5 100755
--- a/utils/jenkins-jnlp-connect.sh
+++ b/utils/jenkins-jnlp-connect.sh
@@ -61,8 +61,8 @@ main () {
#make pid dir
pidfile="/var/run/$jenkinsuser/jenkins_jnlp_pid"
if ! [ -d /var/run/$jenkinsuser/ ]; then
- mkdir /var/run/$jenkinsuser/
- chown $jenkinsuser:$jenkinsuser /var/run/$jenkinsuser/
+ sudo mkdir /var/run/$jenkinsuser/
+ sudo chown $jenkinsuser:$jenkinsuser /var/run/$jenkinsuser/
fi
if [[ $skip_monit != true ]]; then