Hi Pirate,

On 30-06-16 21:30, Pirate Praveen wrote:
> See
> https://anonscm.debian.org/cgit/pkg-ruby-extras/diaspora-installer.git/tree/grantpriv.sh#n12
> 
> for how I do it now.

Without diving into the different files of yours, I still don't
understand what you are doing that you couldn't do with
dbconfig-generate-include as mentioned in my first response.

> It would be really better for dbconfig-common to handle this.

This is what I do in my cacti postinst:

dbc_generate_include="template:/etc/cacti/debian.php"
dbc_generate_include_owner="root:www-data"
dbc_generate_include_perms="0640"
dbc_generate_include_args="--dbname=database_default
--dbpass=database_password --dbuser=database_username
--dbserver=database_hostname --dbport=database_port -o
template_infile=/usr/share/cacti/conf_templates/debian.php.dist"
dbc_mysql_createdb_encoding="latin1"
dbc_go cacti $@
ucfr cacti /etc/cacti/debian.php

Why doesn't this work for you? So what do you expect from dbconfig to do
instead?

Paul

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to