Kiril Nesenko has posted comments on this change.

Change subject: packaging: log rotation - do not execute ls on non-existing 
files
......................................................................


Patch Set 1: (1 inline comment)

....................................................
File packaging/resources/ovirtlogrot.sh
Line 12: date=`date $dateformat`
Line 13: 
Line 14: for i in $logdir/{engine,server,jasperserver}.log.*; do
Line 15:  m=`expr match $i '.*\(gz\|xz\)'`
Line 16:  if [[ -z "$m" && -w "$i" ]]
Why do you care about 'w' permission ?
Line 17:  then
Line 18:   cat $i | xz > $i-${date}_`/bin/date +%N | cut -c6-`.xz && rm $i
Line 19:  fi
Line 20: done;


--
To view, visit http://gerrit.ovirt.org/14097
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Icb3d443dd26c6e22302a694c1d0f433383f312b7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ofer Schreiber <oschr...@redhat.com>
Gerrit-Reviewer: Alex Lourie <alou...@redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernan...@redhat.com>
Gerrit-Reviewer: Kiril Nesenko <knese...@redhat.com>
Gerrit-Reviewer: Moran Goldboim <mgold...@redhat.com>
Gerrit-Reviewer: Ofer Schreiber <oschr...@redhat.com>
Gerrit-Reviewer: Sandro Bonazzola <sbona...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to