diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-10-16 12:30:34 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-10-16 12:30:34 -0400 |
| commit | 51634a1bfc091b0c2e005e58266771dab0710ffe (patch) | |
| tree | b0ae2dc87cf6d3a21bc81dbd4dcb0b63afb1d612 /src/Propellor/Property/Systemd.hs | |
| parent | 5cbbc8fbc5cfe0862ac278b63bb5f16f35998ee8 (diff) | |
| parent | e5b5a190b7de979cd889c92ecff530417534864e (diff) | |
Merge branch 'joeyconfig'
Diffstat (limited to 'src/Propellor/Property/Systemd.hs')
| -rw-r--r-- | src/Propellor/Property/Systemd.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs index 8194fc85..a93c48bc 100644 --- a/src/Propellor/Property/Systemd.hs +++ b/src/Propellor/Property/Systemd.hs @@ -254,8 +254,9 @@ nspawnService (Container name _ _) cfg = setup <!> teardown <$> servicefilecontent <*> catchDefaultIO "" (readFile servicefile) - writeservicefile = property servicefile $ makeChange $ - viaTmp writeFile servicefile =<< servicefilecontent + writeservicefile = property servicefile $ makeChange $ do + c <- servicefilecontent + File.viaStableTmp (\t -> writeFile t c) servicefile setupservicefile = check (not <$> goodservicefile) $ -- if it's running, it has the wrong configuration, |
