aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 164c0de..74691c6 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -70,6 +70,7 @@ class backup {
$ensure = present,
$full_if_older_than = "1M",
$remove_older_than = "45D",
+ $periodic_check = present,
$directory = "/var/backups/duplicity") {
case $encryptkey { false: { err("need to define a key!") } }
@@ -96,12 +97,12 @@ class backup {
# check backups once a week
cron { "duplicity_check--$title.$domain":
- command => "${backupninja::client::defaults::configdir}/${order}_duplicity-${title}.sh --check",
+ command => "/bin/bash ${backupninja::client::defaults::configdir}/${order}_duplicity-${title}.sh --check",
user => root,
hour => "0",
minute => "0",
weekday => "0",
- ensure => present,
+ ensure => $periodic_check,
}
}
}