From ee96e62cfc07dfa4016d0f9bcb970ad17e8e9a41 Mon Sep 17 00:00:00 2001 From: FĂ©lix Sipma Date: Fri, 1 Apr 2016 20:00:50 +0200 Subject: Attic: use "attic" instead of "/usr/bin/attic" --- src/Propellor/Property/Attic.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Propellor/Property/Attic.hs') 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" -- cgit v1.2.3