]> Frank Brehm's Git Trees - scripts/solaris.git/commitdiff
Kosmetik
authorFrank Brehm <frank@brehm-online.com>
Wed, 5 Apr 2006 07:24:05 +0000 (07:24 +0000)
committerFrank Brehm <frank@brehm-online.com>
Wed, 5 Apr 2006 07:24:05 +0000 (07:24 +0000)
LogRotate.pm
logrotate.pl

index 1a8be24e585e0903f81c05e3d85558b9562f8f19..10caf5dbc8d9f22def2ac641aa6231d2e4d8db16 100644 (file)
@@ -1268,7 +1268,7 @@ sub rotate($) {
       print $p . "Schau nach, ob das Firstaction-Script ausgefuehrt werden soll ...\n" if verbose() > 2;
       unless ( $self->{'c'}{'scripts'}{$firstscript}{'first'} ) {
         $cmd = join( "\n", @{$self->{'c'}{'scripts'}{$firstscript}{'cmd'}} ) . "\n";
-        print $p . "Fuehre Firstaction-Script '$firstscript' aus:\n$cmd" if verbose()
+        print $p . "Fuehre Firstaction-Script '$firstscript' aus:\n$cmd"; 
         system $cmd unless $self->{'test'};
       }
       $self->{'c'}{'scripts'}{$firstscript}{'first'} = 1;
@@ -1280,7 +1280,7 @@ sub rotate($) {
       print $p . "Schau nach, ob das Prerotate-Script ausgefuehrt werden soll ...\n" if verbose() > 2;
       unless ( $self->{'c'}{'scripts'}{$prescript}{'prerun'} and $sharedscripts ) {
         $cmd = join( "\n", @{$self->{'c'}{'scripts'}{$prescript}{'cmd'}} ) . "\n";
-        print $p . "Fuehre Firstaction-Script '$prescript' aus:\n$cmd" if verbose()
+        print $p . "Fuehre Firstaction-Script '$prescript' aus:\n$cmd"; 
         system $cmd unless $self->{'test'};
       }
       $self->{'c'}{'scripts'}{$prescript}{'prerun'} = 1;
@@ -1313,7 +1313,7 @@ sub rotate($) {
       if ( $do_script ) {
         $self->{'c'}{'scripts'}{$postscript}{'donepost'} = 1;
         $cmd = join( "\n", @{$self->{'c'}{'scripts'}{$postscript}{'cmd'}} ) . "\n";
-        print $p . "Fuehre Postrotate-Script '$postscript' aus:\n$cmd" if verbose()
+        print $p . "Fuehre Postrotate-Script '$postscript' aus:\n$cmd"; 
         system $cmd unless $self->{'test'};
       }
     }
@@ -1329,7 +1329,7 @@ sub rotate($) {
       if ( $do_script ) {
         $self->{'c'}{'scripts'}{$lastscript}{'donelast'} = 1;
         $cmd = join( "\n", @{$self->{'c'}{'scripts'}{$lastscript}{'cmd'}} ) . "\n";
-        print $p . "Fuehre Lastaction-Script '$lastscript' aus:\n$cmd" if verbose()
+        print $p . "Fuehre Lastaction-Script '$lastscript' aus:\n$cmd"; 
         system $cmd unless $self->{'test'};
       }
     }
@@ -1341,7 +1341,7 @@ sub rotate($) {
   foreach $name ( keys %{$self->{'c'}{'scripts'}} ) {
     if ( $self->{'c'}{'scripts'}{$name}{'dopost'} and not $self->{'c'}{'scripts'}{$name}{'donepost'} ) {
       $cmd = join( "\n", @{$self->{'c'}{'scripts'}{$name}{'cmd'}} ) . "\n";
-      print $p . "Fuehre Postrotate-Script '$name' aus:\n$cmd" if verbose()
+      print $p . "Fuehre Postrotate-Script '$name' aus:\n$cmd"; 
       system $cmd unless $self->{'test'};
     }
   }
@@ -1351,7 +1351,7 @@ sub rotate($) {
   foreach $name ( keys %{$self->{'c'}{'scripts'}} ) {
     if ( $self->{'c'}{'scripts'}{$name}{'dolast'} and not $self->{'c'}{'scripts'}{$name}{'donelast'} ) {
       $cmd = join( "\n", @{$self->{'c'}{'scripts'}{$name}{'cmd'}} ) . "\n";
-      print $p . "Fuehre Lastaction-Script '$name' aus:\n$cmd" if verbose()
+      print $p . "Fuehre Lastaction-Script '$name' aus:\n$cmd"; 
       system $cmd unless $self->{'test'};
     }
   }
index 2f03227d553d2a8e007c14529ff408b34c610e3e..85c9d738b88c061218cd9f0f723470361e81f54e 100755 (executable)
@@ -154,7 +154,7 @@ verbose($verbose);
 $test = 1 if $config_check;
 
 unless ( $test ) {
-  print "\n" . ( "#" x 80 ) . "\n" if $verbose;
+  print "\n" . ( "#" x 80 ) . "\n";
   print "$0 beginnt mit Logrotation um: " . localtime() . "\n\n";
 }