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.
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.
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
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
4 matches
Mail list logo