stable

Clone or download

Read-only

Move initialization of Tuleap DB to tuleap-cfg commands

First and foremost the goal is to be able to understand what the code does. This commit introduce 2 tuleap-cfg commands: - One for database initialization. It assume a working DB with enough privileges to create DB and users with all privileges grant. - The second one assume that the DB and app user exists and load everything in the DB. The need is to be able to run the second only in setup where the DB is managed by an external service (like Cloud managed DBs). Part of: story #14683 install a basic image Change-Id: Iaa127beaae8cf3434b2ac70ed25c1f8999b52f3f

Modified Files

Name
A src/tuleap-cfg/Command/SetupMysql/ConnectionManager.php +95 −0 Go to diff View file
A src/tuleap-cfg/Command/SetupMysql/StatementLoader.php +51 −0 Go to diff View file
A src/tuleap-cfg/Command/SetupMysqlCommand.php +99 −0 Go to diff View file
A src/tuleap-cfg/Command/SetupMysqlInitCommand.php +106 −0 Go to diff View file
M src/tuleap-cfg/tuleap-cfg.php +2 −0 Go to diff View file
M tools/setup.el7.sh +6 −18 Go to diff View file
M tools/setup/el7/include/check.sh +0 −26 Go to diff View file
M tools/setup/el7/include/define.sh +0 −4 Go to diff View file
M tools/setup/el7/include/mysqlcli.sh +0 −5 Go to diff View file
M tools/setup/el7/include/php.sh +0 −6 Go to diff View file
M tools/setup/el7/include/setup.sh +1 −77 Go to diff View file
M tools/setup/el7/include/sql.sh +0 −19 Go to diff View file