Re: Martin Pitt 2014-03-07 <[email protected]> > 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 -- [email protected] | http://www.df7cb.de/ _______________________________________________ Pkg-postgresql-public mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-postgresql-public
