diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-10-12 16:30:02 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-10-12 16:30:02 +0000 |
commit | 45190f26bd148d7eb8554c6ef11898f3f6da023e (patch) | |
tree | e80cd1bbae6f82f324773b5c9ecac475308850ed | |
parent | e4d84f6bef98912bf303b6e924ff711f4bd7a4f9 (diff) | |
download | drakx-45190f26bd148d7eb8554c6ef11898f3f6da023e.tar drakx-45190f26bd148d7eb8554c6ef11898f3f6da023e.tar.gz drakx-45190f26bd148d7eb8554c6ef11898f3f6da023e.tar.bz2 drakx-45190f26bd148d7eb8554c6ef11898f3f6da023e.tar.xz drakx-45190f26bd148d7eb8554c6ef11898f3f6da023e.zip |
simplify cron writing
-rwxr-xr-x | perl-install/standalone/logdrake | 6 |
1 files changed, 2 insertions, 4 deletions
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) { |