Commit 5001eb0e authored by Łukasz Nowak's avatar Łukasz Nowak

- reuse software_definition part to find software


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32484 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9fc5b8af
...@@ -40,11 +40,11 @@ output = ${configuration:mysql_cnf_file} ...@@ -40,11 +40,11 @@ output = ${configuration:mysql_cnf_file}
recipe = plone.recipe.command recipe = plone.recipe.command
command = command =
mkdir -p ${configuration:mysql_datadir} mkdir -p ${configuration:mysql_datadir}
${buildout:bin-directory}/mysql_install_db --datadir=${configuration:mysql_datadir} ${software_definition:software_home}/bin/mysql_install_db --datadir=${configuration:mysql_datadir}
[start-mysql-instance] [start-mysql-instance]
recipe = plone.recipe.command recipe = plone.recipe.command
command = ${buildout:bin-directory}/mysqld_safe --defaults-file=${configuration:mysql_cnf_file} & command = ${software_definition:software_home}/bin/mysqld_safe --defaults-file=${configuration:mysql_cnf_file} &
update-command = ${:command} update-command = ${:command}
[stop-mysql-instance] [stop-mysql-instance]
......
...@@ -26,7 +26,7 @@ executable = ${:prefix}/bin/python${buildout:python_version} ...@@ -26,7 +26,7 @@ executable = ${:prefix}/bin/python${buildout:python_version}
[pythonbin] [pythonbin]
recipe = plone.recipe.command recipe = plone.recipe.command
command = ln -sf ${python:executable} ${buildout:bin-directory}/python${buildout:python_version} command = ln -sf ${python:executable} ${software_definition:software_home}/bin/python${buildout:python_version}
[requirements] [requirements]
binary = binary =
......
...@@ -40,7 +40,7 @@ products = ...@@ -40,7 +40,7 @@ products =
# XXX: This have to be converted into recipe # XXX: This have to be converted into recipe
recipe = plone.recipe.command recipe = plone.recipe.command
command = command =
echo "CREATE DATABASE IF NOT EXISTS ${create_erp5_site:mysql_database_name} DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ${buildout:bin-directory}/mysql --defaults-file=${configuration:mysql_cnf_file} -u root echo "CREATE DATABASE IF NOT EXISTS ${create_erp5_site:mysql_database_name} DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci" | ${software_definition:software_home}/bin/mysql --defaults-file=${configuration:mysql_cnf_file} -u root
[create_erp5_site] [create_erp5_site]
depends = ${create_mysql_database:command} depends = ${create_mysql_database:command}
......
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