silently populate mysql database

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

silently populate mysql database

Beitrag 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
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: silently populate mysql database

Beitrag 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


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Antworten