Bug#858461: logrotate call in debian/README.Debian no more working

2018-09-18 Thread Helmar Gerloni
In addition to the advices in debian/README.Debian

 * change line in /etc/logrotate.d/apache2 to: "create 644 root adm" 
 * change permissions of existing files: chmod 644 /var/log/apache2/*.log

you also need "chmod 755 /var/log/apache2" to allow www-data to access the logs.



Bug#858461: logrotate call in debian/README.Debian no more working

2018-01-24 Thread Paul Boekholt
The patch in #10 fixes the login shell problem but www-data does not have 
access to the logs
so it still doesn't work.
There's also an open bug #745620 to run the cronjob as adm.



Bug#858461: logrotate call in debian/README.Debian no more working

2018-01-08 Thread Andreas Hasenack
In addition to the README change, here is a change to the actual script, so
it works out of the box. Attached a diff that includes Christian's fix.
diff -uNr awstats-7.6+dfsg.orig/debian/prerotate.sh 
awstats-7.6+dfsg/debian/prerotate.sh
--- awstats-7.6+dfsg.orig/debian/prerotate.sh   2016-12-12 08:51:39.0 
-0200
+++ awstats-7.6+dfsg/debian/prerotate.sh2018-01-08 16:35:07.309289493 
-0200
@@ -2,5 +2,5 @@
 UPDATE_SCRIPT=/usr/share/awstats/tools/update.sh
 if [ -x $UPDATE_SCRIPT ]
 then
-  su -l -c $UPDATE_SCRIPT www-data
+  su -s /bin/sh -l -c $UPDATE_SCRIPT www-data
 fi
diff -uNr awstats-7.6+dfsg.orig/debian/README.Debian 
awstats-7.6+dfsg/debian/README.Debian
--- awstats-7.6+dfsg.orig/debian/README.Debian  2016-12-12 08:51:39.0 
-0200
+++ awstats-7.6+dfsg/debian/README.Debian   2018-01-08 16:35:07.305289484 
-0200
@@ -64,7 +64,7 @@
 
 prerotate
   if [ -x /usr/share/awstats/tools/update.sh ]; then
-su -l -c /usr/share/awstats/tools/update.sh www-data
+su -s /bin/sh -l -c /usr/share/awstats/tools/update.sh www-data
   fi
 endscript
 


Bug#858461: logrotate call in debian/README.Debian no more working

2017-03-22 Thread Christian Ehrhardt
Package: awstats
Version: 7.6+dfsg-1
Severity: low

Hi,
we got a Ubuntu bug, but this shall be fixed in both of our distributions -
therefore filing it here.

There is an issue in debian/README.Debian since the change of www-data to
/usr/sbin/nologin

You can try with:
$ sudo su -l -c /bin/true www-data
This account is currently not available.

Overriding with an explicit shell fixes the issue:
$ sudo su -s /bin/sh -l -c /bin/true www-data

Even the change being trivial, for your convenience a matching Debdiff is
attached.

-- 
Christian Ehrhardt
Software Engineer, Ubuntu Server
Canonical Ltd


fix-logrotate-readme.debdiff
Description: Binary data