summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/logdrake
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-10-12 16:30:02 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-10-12 16:30:02 +0000
commit45190f26bd148d7eb8554c6ef11898f3f6da023e (patch)
treee80cd1bbae6f82f324773b5c9ecac475308850ed /perl-install/standalone/logdrake
parente4d84f6bef98912bf303b6e924ff711f4bd7a4f9 (diff)
downloaddrakx-backup-do-not-use-45190f26bd148d7eb8554c6ef11898f3f6da023e.tar
drakx-backup-do-not-use-45190f26bd148d7eb8554c6ef11898f3f6da023e.tar.gz
drakx-backup-do-not-use-45190f26bd148d7eb8554c6ef11898f3f6da023e.tar.bz2
drakx-backup-do-not-use-45190f26bd148d7eb8554c6ef11898f3f6da023e.tar.xz
drakx-backup-do-not-use-45190f26bd148d7eb8554c6ef11898f3f6da023e.zip
simplify cron writing
Diffstat (limited to 'perl-install/standalone/logdrake')
-rwxr-xr-xperl-install/standalone/logdrake6
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) {