Seite 1 von 1

silently populate mysql database

Verfasst: 08 Jan 2015, 13:17
von Antoine GUEVARA
Hi,

There is a way to silently deploy the mysql module and populate mysql DB ?

ex :

Code: Alles auswählen

opsi-setup --configure-mysql --user root --password password 
my mysql.conf file is correctly fill with username & database & password

How can I do it automaticaly and silently ?

Thanks,

Antoine

Re: silently populate mysql database

Verfasst: 08 Jan 2015, 13:34
von d.oertel
Hi,

since opsi 4.0.5 you may use something like this:

Code: Alles auswählen

UNATTENDED='{"dbAdminPass":"$mysql_root_pw$", "dbAdminUser":"root", "database":"opsi"}'
opsi-setup --configure-mysql --unattended=$UNATTENDED
regards
d.oertel