diff options
| author | Félix Sipma <felix.sipma@no-log.org> | 2016-04-01 20:00:50 +0200 |
|---|---|---|
| committer | Félix Sipma <felix.sipma@no-log.org> | 2016-04-22 15:38:47 +0200 |
| commit | ee96e62cfc07dfa4016d0f9bcb970ad17e8e9a41 (patch) | |
| tree | f6c67d8fc010babfa923299e5de25532c38d186d /src | |
| parent | d324a3bc1d122527836d012078dcd632ebb78495 (diff) | |
Attic: use "attic" instead of "/usr/bin/attic"
Diffstat (limited to 'src')
| -rw-r--r-- | src/Propellor/Property/Attic.hs | 6 |
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" |
