cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Goasguen <run...@gmail.com>
Subject setting db.properties files
Date Tue, 09 Dec 2014 12:56:48 GMT
Hi,

I am dockering with cloudstack.

I need to update the db.properties file to set the db password and host to something other
than localhost.
the host is actually in a env variable.

I can do it with a dirty hack like this:

sed -i "s/db.root.password=/db.root.password=$MYSQL_ENV_MYSQL_ROOT_PASSWORD/" utils/conf/db.properties

what's the best practice to change those db properties at "runtime" ?

thx,

-sebastien
Mime
View raw message