Replace perl with awk
Perl is missing in kolla containers. Replace it with
awk.
bz: #1553077
Closes-Bug: #1756343
Change-Id: Ie51bd1fa08d7690ac76a01ee2c558e86fb52bb2d
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
(cherry picked from commit cc82b62f44
)
This commit is contained in:
parent
a5e48781dd
commit
4105d44f53
@ -8,7 +8,7 @@
|
||||
<%- end %>
|
||||
postrotate
|
||||
/sbin/lsof -nPs +L1 +D /var/log 2>&1|\
|
||||
/bin/perl -ne '/\S+\s+(\d+).*\/var\/log\/.*\(deleted\)/ && print "$1\n"' |\
|
||||
awk '/\S+\s+[0-9]+\s.*\/var\/log\/.*\(deleted\)/ {print $2}' |\
|
||||
/bin/xargs -n1 -r -t kill -HUP
|
||||
endscript
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user