From d5710d64c15b57c8a5d37437d4a36c3eb231d4f4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 6 Dec 2015 00:30:07 -0400 Subject: avoid removing line we wanted to add, only to add it back later --- src/Propellor/Property/Systemd.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Propellor/Property/Systemd.hs') diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs index 04ce3b48..5a08fb1e 100644 --- a/src/Propellor/Property/Systemd.hs +++ b/src/Propellor/Property/Systemd.hs @@ -158,7 +158,7 @@ configured cfgfile option value = combineProperties desc line = setting ++ value desc = cfgfile ++ " " ++ line removeother l - | setting `isPrefixOf` l = Nothing + | setting `isPrefixOf` l && l /= line = Nothing | otherwise = Just l -- | Causes systemd to reload its configuration files. -- cgit v1.2.3