From f186a378a38e89f07e474269059260a089b118de Mon Sep 17 00:00:00 2001 From: mhoellein Date: Wed, 9 Jun 2021 23:03:22 +0200 Subject: [PATCH] committing changes in /etc after apt run Package changes: -apache2 2.4.46-4+deb.sury.org+1+ubuntu18.04.1+deb.sury.org+5 amd64 -apache2-bin 2.4.46-4+deb.sury.org+1+ubuntu18.04.1+deb.sury.org+5 amd64 -apache2-data 2.4.46-4+deb.sury.org+1+ubuntu18.04.1+deb.sury.org+5 all -apache2-utils 2.4.46-4+deb.sury.org+1+ubuntu18.04.1+deb.sury.org+5 amd64 +apache2 2.4.48-1+ubuntu18.04.1+deb.sury.org+1 amd64 +apache2-bin 2.4.48-1+ubuntu18.04.1+deb.sury.org+1 amd64 +apache2-data 2.4.48-1+ubuntu18.04.1+deb.sury.org+1 all +apache2-utils 2.4.48-1+ubuntu18.04.1+deb.sury.org+1 amd64 -python-pip 9.0.1-2.3~ubuntu1.18.04.4 all -python-pip-whl 9.0.1-2.3~ubuntu1.18.04.4 all +python-pip 9.0.1-2.3~ubuntu1.18.04.5 all +python-pip-whl 9.0.1-2.3~ubuntu1.18.04.5 all -rpcbind 0.2.3-0.6ubuntu0.18.04.1 amd64 +rpcbind 0.2.3-0.6ubuntu0.18.04.2 amd64 -update-notifier-common 3.192.1.10 all +update-notifier-common 3.192.1.11 all --- logrotate.d/apache2 | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/logrotate.d/apache2 b/logrotate.d/apache2 index 37c5f22e..9d2356da 100644 --- a/logrotate.d/apache2 +++ b/logrotate.d/apache2 @@ -1,20 +1,20 @@ /var/log/apache2/*.log { - daily - missingok - rotate 14 - compress - delaycompress - notifempty - create 640 root adm - sharedscripts - postrotate - if invoke-rc.d apache2 status > /dev/null 2>&1; then \ - invoke-rc.d apache2 reload > /dev/null 2>&1; \ - fi; - endscript - prerotate - if [ -d /etc/logrotate.d/httpd-prerotate ]; then \ - run-parts /etc/logrotate.d/httpd-prerotate; \ - fi; \ - endscript + daily + missingok + rotate 14 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts + prerotate + if [ -d /etc/logrotate.d/httpd-prerotate ]; then + run-parts /etc/logrotate.d/httpd-prerotate + fi + endscript + postrotate + if pgrep -f ^/usr/sbin/apache2 > /dev/null; then + invoke-rc.d apache2 reload + fi + endscript } -- 2.43.0