From 45190f26bd148d7eb8554c6ef11898f3f6da023e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 12 Oct 2003 16:30:02 +0000 Subject: simplify cron writing --- perl-install/standalone/logdrake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/logdrake b/perl-install/standalone/logdrake index fd38b9614..84cb9261c 100755 --- a/perl-install/standalone/logdrake +++ b/perl-install/standalone/logdrake @@ -31,7 +31,6 @@ use ugtk2 qw(:create :dialogs :wrappers :helpers); $::isInstall and die "Not supported during install.\n"; my $in = 'interactive'->vnew('su'); -my $cron_hourly = "/etc/cron.hourly/logdrake_service"; #- parse arguments list. foreach (@ARGV) { @@ -384,7 +383,7 @@ my $r = "*** " . chomp_(`date`) . " ***\n"; ); -my $initdir = "/etc/init.d"; + my $initdir = "/etc/init.d"; my ($load, $email); $load = 3; @@ -468,8 +467,7 @@ To: ), "$email\n"; print F $r; # EOF); - output $cron_hourly, $cron; - chmod 0755, $cron_hourly; + output_with_perm "/etc/cron.hourly/logdrake_service", 0755, $cron; undef $::isWizard; if (defined $::WizardWindow) { -- cgit v1.2.1