logrotate: adapt postrotate script for /bin/sh

Merged François Grisez requested to merge fix/logrotate into master

Merge request reports