summaryrefslogtreecommitdiffstats
path: root/draksnapshot-config
diff options
context:
space:
mode:
Diffstat (limited to 'draksnapshot-config')
-rwxr-xr-xdraksnapshot-config11
1 files changed, 3 insertions, 8 deletions
diff --git a/draksnapshot-config b/draksnapshot-config
index 7f04a4f..7cd2381 100755
--- a/draksnapshot-config
+++ b/draksnapshot-config
@@ -314,14 +314,10 @@ sub generate_cron_entry() {
my $cron_file = "$::prefix/etc/cron.\%s/rsnapshot";
- my @current_conf = cat_($config_file);
-
foreach my $type (qw(hourly daily weekly monthly)) {
- my $current_setting = grep { /^interval\s$type/ } @current_conf;
- if (my ($interval) = $current_setting = ~ /^interval\s*$type\s*(\S*)/) {
- my $file = sprintf($cron_file, $type);
- output_with_perm($file, 0755,
- qq(# WARNING: This file is autogenerated from /etc/rsnapshot.conf.
+ my $file = sprintf($cron_file, $type);
+ output_with_perm($file, 0755,
+ qq(# WARNING: This file is autogenerated from /etc/rsnapshot.conf.
# WARNING: Please alter /etc/rsnapshot.conf instead of $cron_file
# Then rerun draksnapshot-config
#
@@ -329,6 +325,5 @@ sub generate_cron_entry() {
/usr/bin/rsnapshot $type
));
- }
}
}