From fdb8f47767fac054d6b218d81b14e48abed3a3ee Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 26 Sep 2008 15:52:15 +0000 Subject: kill dead code git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@246749 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94 --- draksnapshot-config | 11 +++-------- 1 file 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 )); - } } } -- cgit v1.2.1