From: Ricardo Noriega Date: Mon, 3 Jun 2019 15:12:03 +0000 (+0200) Subject: Fix sudos in prep host script X-Git-Tag: akraino_r1~3 X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=ac278e9ef223c7527de755d3483d1d65bd601ab2;p=kni%2Finstaller.git Fix sudos in prep host script Signed-off-by: Ricardo Noriega Change-Id: Ibaee056689ca33e0ea6b5d04f337f27113af1abb --- diff --git a/utils/prep_host.sh b/utils/prep_host.sh index 5e5d7eb..4c46a3b 100644 --- a/utils/prep_host.sh +++ b/utils/prep_host.sh @@ -28,10 +28,10 @@ prerequisites() sudo systemctl restart libvirtd # Add Iptables rule - iptables -I INPUT -p tcp -s 192.168.126.0/24 -d 192.168.122.1 --dport 16509 -j ACCEPT -m comment --comment "Allow insecure libvirt clients" + sudo iptables -I INPUT -p tcp -s 192.168.126.0/24 -d 192.168.122.1 --dport 16509 -j ACCEPT -m comment --comment "Allow insecure libvirt clients" # Get active Firewall zone option - systemctl is-active firewalld + sudo systemctl is-active firewalld if [ $? -ne 0 ] then echo "Your system doesn't have firewalld service running"