From b64073dd39369f6dcfb21ff2b221339621cf6b2c Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Thu, 28 Sep 2017 11:10:25 +0200 Subject: [PATCH] quick fix to avoid exit 1 --- packweb-apache/files/userlogrotate | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packweb-apache/files/userlogrotate b/packweb-apache/files/userlogrotate index 9d45af6a..897c077b 100644 --- a/packweb-apache/files/userlogrotate +++ b/packweb-apache/files/userlogrotate @@ -30,8 +30,11 @@ for log in production.log delayed_job.log development.log test.log; do done done -if /etc/init.d/apache2 status > /dev/null ; then \ +test -x /usr/sbin/apache2ctl && if /etc/init.d/apache2 status > /dev/null ; then \ /etc/init.d/apache2 reload > /dev/null; \ fi; test -x /usr/sbin/nginx && invoke-rc.d nginx rotate >/dev/null 2>&1 + +# we want exit 0 +true