Control: tag -1 +help On Wed, Oct 21, 2015 at 08:33:39PM +0200, Christoph Berg wrote: > Re: Sven Hartge 2014-09-09 <540f1207.7000...@svenhartge.de> > > > Also the directory /var/lib/smokeping needs to be writable by www-data > > > to allow the data submitted by the slaves to be written to the RRD > > > files or you will get errors like this in the Apache error log: > > > > > > smokeping.cgi [client 10.1.1.32]: Could not update > > > /var/lib/smokeping//Remote/Campus_Remote/swXXX-remote-v1.smoke-slave.slave_cache, > > > giving up for now. at /usr/share/perl5/Smokeping/Master.pm line 156. > > > > Correction: The permissions for /var/lib/smokeping are fine, but the > > default configuration is missing the "dyndir" directive causing the CGI > > trying to write into the datadir instead of the correct directory > > /var/lib/smokeping/__cgi. > > I ran into this as well, it would be nice if the package got fixed. > The default /var/lib/smokeping/__cgi permissions need to be adjusted > as well: > drwxrwsr-x 4 smokeping www-data 4096 Okt 21 20:24 /var/lib/smokeping/__cgi
So I'm not sure I follow all the proposed changes here. I don't feel like prompting the user for permissions is reasonable, at least not at a high priority. If you want to implement that, go ahead, in the `config` script with a `low` priority so it can be preseeded or something. But then I wonder if something couldn't be done with `dpkg-statoverride` - wouldn't that solve your problem? Also, we may be able to differentiate the configuration of slave and master packages, a split that has been proposed years ago but never implemented (#656369). In any case, I would like someone to propose a patch here so we can move ahead. It looks like permissions are set here: https://anonscm.debian.org/cgit/collab-maint/smokeping.git/tree/debian/postinst I would very much welcome a simple proposed modification to this file if permissions can be improved directly. Otherwise there would need to be changes encompassing more files (e.g. config) if we want debconf help. A.
signature.asc
Description: PGP signature