Re: Martin Pitt 2014-03-07 <20140307132111.gd2...@piware.de> > Christoph Berg [2014-03-07 13:40 +0100]: > > pg_createcluster will still want to write to /etc/postgresql which is > > owned by postgres, so the stats_temp_directory doesn't make the > > situation worse. > > That's different, though. If you use /etc/postgresql/ then > pg_createcluster of course still needs to run as root, but if you > specify a different owner than postgres, the cluster won't be able to > start. You can also do this entirely as user by setting > $PG_CLUSTER_CONF_ROOT.
> > I think this, and the %s idea are too complex for the resulting > > effect. Imho what Christian proposed is just the right approach, > > people can still disable it in createcluster.conf. > > Then we need to ignore the option in pg_createcluster if the owner > cannot write to it. It's special-casing a known option, but it's > certainly doable. Or setting PG_CLUSTER_CONF_ROOT should imply that PGSYSCONFDIR should be different as well. (Explicitely or implicitely) Christoph -- c...@df7cb.de | http://www.df7cb.de/ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org