summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Restic.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Restic.hs')
-rw-r--r--src/Propellor/Property/Restic.hs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Propellor/Property/Restic.hs b/src/Propellor/Property/Restic.hs
index 9415f4bf..01b56510 100644
--- a/src/Propellor/Property/Restic.hs
+++ b/src/Propellor/Property/Restic.hs
@@ -35,13 +35,7 @@ instance ConfigurableValue ResticRepo where
val (REST url) = "rest:" ++ url
installed :: Property DebianLike
-installed = withOS desc $ \w o -> case o of
- (Just (System (Debian _ (Stable "jessie")) _)) -> ensureProperty w $
- Apt.installedBackport ["restic"]
- _ -> ensureProperty w $
- Apt.installed ["restic"]
- where
- desc = "installed restic"
+installed = Apt.installed ["restic"] `describe` "installed restic"
repoExists :: ResticRepo -> IO Bool
repoExists repo = boolSystem "restic"