From 7f1549f6d12b01b5e817cae00ac5547902f8c1ed Mon Sep 17 00:00:00 2001 From: Yolanda Robla Date: Thu, 1 Aug 2019 09:44:31 +0200 Subject: [PATCH] Use sudo when removing openshift.conf file Otherwise it cannot be removed when ran with jenkins user Signed-off-by: Yolanda Robla Change-Id: I94b827dbf5c1de8bb6c62a6d5fc2fec1da3176b6 --- utils/prep_host.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/prep_host.sh b/utils/prep_host.sh index 5a1a38a..02c37e4 100755 --- a/utils/prep_host.sh +++ b/utils/prep_host.sh @@ -75,7 +75,7 @@ EOF echo -e "[main]\ndns=dnsmasq" | sudo tee "${dnsconf}" dnsmasqconf=/etc/NetworkManager/dnsmasq.d/openshift.conf - rm $dnsmasqconf + sudo rm $dnsmasqconf echo server=/$cluster_domain/192.168.126.1 | sudo tee "${dnsmasqconf}" echo address=/.apps.$cluster_domain/192.168.126.51 | sudo tee -a "${dnsmasqconf}" sudo systemctl restart NetworkManager -- 2.16.6