summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoey Hess2017-08-25 19:05:25 -0400
committerJoey Hess2017-08-25 19:05:25 -0400
commit4df36434f50be58f413550dd36206f0c15a3e6f2 (patch)
tree7ee7c8396afca9bb6e718df9dc0c5ab54e4b4224 /src
parent76509711941c94a8f16153ec7f367360ffea6676 (diff)
Attic: Fix broken shell escaping in attic cron job.
Didn't see this one fail, or test this, but it had exactly the same code as borg.
Diffstat (limited to 'src')
-rw-r--r--src/Propellor/Property/Attic.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Attic.hs b/src/Propellor/Property/Attic.hs
index 9e024356..8ab5546b 100644
--- a/src/Propellor/Property/Attic.hs
+++ b/src/Propellor/Property/Attic.hs
@@ -108,7 +108,7 @@ backup' dir backupdir crontimes extraargs kp = cronjob
where
desc = backupdir ++ " attic backup"
cronjob = Cron.niceJob ("attic_backup" ++ dir) crontimes (User "root") "/" $
- "flock " ++ shellEscape lockfile ++ " sh -c " ++ backupcmd
+ "flock " ++ shellEscape lockfile ++ " sh -c " ++ shellEscape backupcmd
lockfile = "/var/lock/propellor-attic.lock"
backupcmd = intercalate ";" $
createCommand