hi john,

On Wed, May 10, 2006 at 04:47:23PM -0500, John Goerzen wrote:
> For bacula, I need the ability to run a command such as:
> 
> ALTER DATABASE bacula SET datestyle TO 'ISO, YMD';
> 
> Now, that database name needs to be the actual database name the user
> has chosen.
> 
> I'd like to be able to place a file in install-dbadmin to do this, but
> can't quite work out how to do that.

you could do this using the install-dbadmin, i think. to get the
name of the database, you can source the

        /etc/dbconfig-common/$package.conf

file which among other things should have dbc_dbname defined in it.
alternately, if you're generating external configuration files
(dbc_generate_include) for bacula's use those will also have the
same info in them.

        sean

-- 

Attachment: signature.asc
Description: Digital signature

Reply via email to