Fix sudos in prep host script 33/933/1
authorRicardo Noriega <rnoriega@redhat.com>
Mon, 3 Jun 2019 15:12:03 +0000 (17:12 +0200)
committerRicardo Noriega <rnoriega@redhat.com>
Mon, 3 Jun 2019 15:12:03 +0000 (17:12 +0200)
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
Change-Id: Ibaee056689ca33e0ea6b5d04f337f27113af1abb

utils/prep_host.sh

index 5e5d7eb..4c46a3b 100644 (file)
@@ -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"