From f5fe46a49f03f27c0ee1b807b8daa0c99a39aa26 Mon Sep 17 00:00:00 2001
From: Eric Cano <Eric.Cano@cern.ch>
Date: Thu, 23 Mar 2017 20:03:26 +0100
Subject: [PATCH] Fixed mixed sudo usage and script modes.

---
 .../buildtree_runner/vmBootstrap/bootstrapCTA.sh            | 0
 .../buildtree_runner/vmBootstrap/bootstrapKubernetes.sh     | 6 +++---
 .../buildtree_runner/vmBootstrap/bootstrapSystem.sh         | 0
 3 files changed, 3 insertions(+), 3 deletions(-)
 mode change 100644 => 100755 continuousintegration/buildtree_runner/vmBootstrap/bootstrapCTA.sh
 mode change 100644 => 100755 continuousintegration/buildtree_runner/vmBootstrap/bootstrapKubernetes.sh
 mode change 100644 => 100755 continuousintegration/buildtree_runner/vmBootstrap/bootstrapSystem.sh

diff --git a/continuousintegration/buildtree_runner/vmBootstrap/bootstrapCTA.sh b/continuousintegration/buildtree_runner/vmBootstrap/bootstrapCTA.sh
old mode 100644
new mode 100755
diff --git a/continuousintegration/buildtree_runner/vmBootstrap/bootstrapKubernetes.sh b/continuousintegration/buildtree_runner/vmBootstrap/bootstrapKubernetes.sh
old mode 100644
new mode 100755
index 389f385875..551f2b601f
--- a/continuousintegration/buildtree_runner/vmBootstrap/bootstrapKubernetes.sh
+++ b/continuousintegration/buildtree_runner/vmBootstrap/bootstrapKubernetes.sh
@@ -50,9 +50,9 @@ perl -p -i -e 's/<%= \@dns_domainname -%>/'"${dns_domainname}"'/' ${dnspoddir}/p
 perl -p -i -e 's/<%= \@my_ipaddress -%>/'"${docker_ipaddress}"'/' ${dnspoddir}/pod-dns.yaml
 perl -p -i -e 's/<%= \@upper_level_dns -%>/'"${upper_level_dns}"'/' ${dnspoddir}/pod-dns.yaml
 
-kubectl create -f .DNS/kube-system_ns.yaml
-kubectl create -f ${dnspoddir}/dns-svc.yaml
-kubectl create -f ${dnspoddir}/pod-dns.yaml
+sudo kubectl create -f .DNS/kube-system_ns.yaml
+sudo kubectl create -f ${dnspoddir}/dns-svc.yaml
+sudo kubectl create -f ${dnspoddir}/pod-dns.yaml
 
 rm -rf ${dnspoddir}
 
diff --git a/continuousintegration/buildtree_runner/vmBootstrap/bootstrapSystem.sh b/continuousintegration/buildtree_runner/vmBootstrap/bootstrapSystem.sh
old mode 100644
new mode 100755
-- 
GitLab