summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma2016-04-01 20:00:50 +0200
committerFélix Sipma2016-04-22 15:38:47 +0200
commitee96e62cfc07dfa4016d0f9bcb970ad17e8e9a41 (patch)
treef6c67d8fc010babfa923299e5de25532c38d186d
parentd324a3bc1d122527836d012078dcd632ebb78495 (diff)
Attic: use "attic" instead of "/usr/bin/attic"
-rw-r--r--src/Propellor/Property/Attic.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Propellor/Property/Attic.hs b/src/Propellor/Property/Attic.hs
index f2e0cbf1..b5410579 100644
--- a/src/Propellor/Property/Attic.hs
+++ b/src/Propellor/Property/Attic.hs
@@ -16,7 +16,7 @@ repoExists repo = boolSystem "attic" [Param "list", File repo]
backup :: [FilePath] -> FilePath -> Cron.Times -> [String] -> Property NoInfo
backup dirs backupdir crontimes extraargs = propertyList (backupdir ++ " attic backup")
[ installed
- , check (not <$> repoExists backupdir) $ cmdProperty "/usr/bin/attic" initargs
+ , check (not <$> repoExists backupdir) $ cmdProperty "attic" initargs
, Cron.niceJob ("attic_backup" ++ backupdir) crontimes (User "root") "/" backupcmd
]
where
@@ -29,7 +29,7 @@ backup dirs backupdir crontimes extraargs = propertyList (backupdir ++ " attic b
, pruneCommand
]
createCommand = unwords $
- [ "/usr/bin/attic"
+ [ "attic"
, "create"
, "--stats"
]
@@ -38,7 +38,7 @@ backup dirs backupdir crontimes extraargs = propertyList (backupdir ++ " attic b
, unwords dirs
]
pruneCommand = unwords
- [ "/usr/bin/attic"
+ [ "attic"
, "prune"
, backupdir
, "--keep-daily=7"