diff options
| author | Joey Hess <joeyh@joeyh.name> | 2017-09-25 16:38:41 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2017-09-25 16:38:41 -0400 |
| commit | 75da6a1a36f9ba2211802bc88e0ced397103d434 (patch) | |
| tree | 13f173ce7c41c530c7254df08b353a0b946a76b4 /src | |
| parent | 0beede18c4bdf968ab14e853954b5b472b37002c (diff) | |
Borg: Fix propigation of exit status of borg backup.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Borg.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Borg.hs b/src/Propellor/Property/Borg.hs index 74d71e3d..e95ea87f 100644 --- a/src/Propellor/Property/Borg.hs +++ b/src/Propellor/Property/Borg.hs @@ -148,7 +148,7 @@ backup' dir repo crontimes extraargs kp = cronjob cronjob = Cron.niceJob ("borg_backup" ++ dir) crontimes (User "root") "/" $ "flock " ++ shellEscape lockfile ++ " sh -c " ++ shellEscape backupcmd lockfile = "/var/lock/propellor-borg.lock" - backupcmd = intercalate ";" $ concat + backupcmd = intercalate "&&" $ concat [ concatMap exportenv (runBorgEnv repo) , [createCommand] , if null kp then [] else [pruneCommand] |
