diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-12-06 00:30:07 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-12-06 00:30:07 -0400 |
| commit | d5710d64c15b57c8a5d37437d4a36c3eb231d4f4 (patch) | |
| tree | 53abc38eb4860e374489665a616436f4e05a4adf /src | |
| parent | 8bd4bf6751a21af59062e066824c3501825d0184 (diff) | |
avoid removing line we wanted to add, only to add it back later
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Systemd.hs | 2 |
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. |
