Commit 71075f67 authored by Rafael Monnerat's avatar Rafael Monnerat

Use erp5.recipe.mysqlserver

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33936 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b765fabd
...@@ -15,46 +15,20 @@ mysql_sock = ${:mysql_datadir}/mysql.sock ...@@ -15,46 +15,20 @@ mysql_sock = ${:mysql_datadir}/mysql.sock
mysql_error_log = ${buildout:log-directory}/mysql.err.log mysql_error_log = ${buildout:log-directory}/mysql.err.log
mysql_cnf_file = ${buildout:etc-directory}/my.cnf mysql_cnf_file = ${buildout:etc-directory}/my.cnf
[mysql-bin]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/mysql.in
output = ${buildout:data-bin-directory}/mysql
[mysqldump]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/mysqldump.in
output = ${buildout:data-bin-directory}/mysqldump
[mysql-admin]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/mysqladmin.in
output = ${buildout:data-bin-directory}/mysqladmin
[mysqld_safe-bin]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/mysqld_safe.in
output = ${buildout:data-bin-directory}/mysqld_safe
[mysql-cnf] [mysql-cnf]
recipe = collective.recipe.template recipe = collective.recipe.template
input = ${buildout:directory}/templates/my.cnf.in input = ${buildout:directory}/templates/my.cnf.in
output = ${configuration:mysql_cnf_file} output = ${configuration:mysql_cnf_file}
[mysql-instance] [mysql-instance]
depends = depends =
${create-directories:command}
${mysql-admin:output}
${mysql-bin:output}
${mysql-cnf:output} ${mysql-cnf:output}
${mysqld_safe-bin:output} recipe = erp5.recipe.mysqlserver
${mysqldump:output} mysql_software_bin = ${software_definition:mysql_software}/bin
mysql_bin_folder = ${buildout:data-bin-directory}
recipe = plone.recipe.command mysql_datadir = ${configuration:mysql_datadir}
command = mysql_cnf_file = ${configuration:mysql_cnf_file}
mkdir -p ${configuration:mysql_datadir} mysql_auto_start = false
[ -f ${configuration:mysql_datadir}/ibdata1 ] || ${software_definition:mysql_software}/bin/mysql_install_db --datadir=${configuration:mysql_datadir}
update-command = ${:command}
[mysql-server-template] [mysql-server-template]
<= mysql-instance <= mysql-instance
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment