Otherwise it cannot be removed when ran with
jenkins user
Signed-off-by: Yolanda Robla <yroblamo@redhat.com>
Change-Id: I94b827dbf5c1de8bb6c62a6d5fc2fec1da3176b6
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