summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Systemd.hs
diff options
context:
space:
mode:
authorJoey Hess2015-12-06 00:30:07 -0400
committerJoey Hess2015-12-06 00:30:07 -0400
commitd5710d64c15b57c8a5d37437d4a36c3eb231d4f4 (patch)
tree53abc38eb4860e374489665a616436f4e05a4adf /src/Propellor/Property/Systemd.hs
parent8bd4bf6751a21af59062e066824c3501825d0184 (diff)
avoid removing line we wanted to add, only to add it back later
Diffstat (limited to 'src/Propellor/Property/Systemd.hs')
-rw-r--r--src/Propellor/Property/Systemd.hs2
1 files changed, 1 insertions, 1 deletions
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.