silently populate mysql database

Antoine GUEVARA
Beiträge: 54
Registriert: 13 Apr 2011, 22:01
Wohnort: GIP RECIA - France

silently populate mysql database

Beitragvon Antoine GUEVARA » 08 Jan 2015, 13:17

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

Benutzeravatar
d.oertel
uib-Team
Beiträge: 3286
Registriert: 04 Jun 2008, 14:27

Re: silently populate mysql database

Beitragvon d.oertel » 08 Jan 2015, 13:34

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
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org