From 2766558d61e4d6bfc27a1fa7a0e9c746f836b603 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 31 Oct 2014 10:20:56 -0400 Subject: remove hardcoded path propellor runs as root, and /sbin should always be in root's path --- src/Propellor/Property/Firewall.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Propellor/Property') diff --git a/src/Propellor/Property/Firewall.hs b/src/Propellor/Property/Firewall.hs index e1570175..b660207b 100644 --- a/src/Propellor/Property/Firewall.hs +++ b/src/Propellor/Property/Firewall.hs @@ -30,10 +30,10 @@ rule c t rs = property ("firewall rule: " <> show r) addIpTable r = Rule c t rs addIpTable = liftIO $ do let args = toIpTable r - exist <- boolSystem "/sbin/iptables" (chk args) + exist <- boolSystem "iptables" (chk args) if exist then return NoChange - else ifM (boolSystem "/sbin/iptables" (add args)) + else ifM (boolSystem "iptables" (add args)) ( return MadeChange , return FailedChange) add params = (Param "-A") : params chk params = (Param "-C") : params -- cgit v1.2.3