diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-09-26 15:52:15 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-09-26 15:52:15 +0000 |
commit | fdb8f47767fac054d6b218d81b14e48abed3a3ee (patch) | |
tree | 50842bde4de25a8f84d561a318f41aacb3bce108 /draksnapshot-config | |
parent | 1037fcb44c16b6a865a4fe94cea07fb7438448cb (diff) | |
download | draksnapshot-fdb8f47767fac054d6b218d81b14e48abed3a3ee.tar draksnapshot-fdb8f47767fac054d6b218d81b14e48abed3a3ee.tar.gz draksnapshot-fdb8f47767fac054d6b218d81b14e48abed3a3ee.tar.bz2 draksnapshot-fdb8f47767fac054d6b218d81b14e48abed3a3ee.tar.xz draksnapshot-fdb8f47767fac054d6b218d81b14e48abed3a3ee.zip |
kill dead code
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@246749 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
Diffstat (limited to 'draksnapshot-config')
-rwxr-xr-x | draksnapshot-config | 11 |
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 )); - } } } |