Commit 9e4f632d authored by Łukasz Nowak's avatar Łukasz Nowak

- experimental support to create database for site


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32356 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 77860ffc
...@@ -27,7 +27,9 @@ products += ${products-development:location} ...@@ -27,7 +27,9 @@ products += ${products-development:location}
# Format: # Format:
# database[@host[:port]] [user [password [unix_socket]]] # database[@host[:port]] [user [password [unix_socket]]]
# e.g "erp5db erp5user somepassword" or "erp5db erp5user" # e.g "erp5db erp5user somepassword" or "erp5db erp5user"
erp5_sql_connection_string = test@${configuration:mysql_host}:${configuration:mysql_port} root mysql_database_name = development_site
erp5_sql_connection_string = ${:mysql_database_name}@${configuration:mysql_host}:${configuration:mysql_port} root
bt5 = bt5 =
erp5_base erp5_base
erp5_forge erp5_forge
......
...@@ -36,7 +36,14 @@ products = ...@@ -36,7 +36,14 @@ products =
${products-erp5:location} ${products-erp5:location}
${products-other:location} ${products-other:location}
[create_mysql_database]
# XXX: This have to be converted into recipe
recipe = plone.recipe.command
command =
echo "CREATE DATABASE IF NOT EXISTS ${create_erp5_site:mysql_database_name}" | ${buildout:bin-directory}/mysql -u root
[create_erp5_site] [create_erp5_site]
depends = ${create_mysql_database:command}
recipe = erp5.recipe.createsite recipe = erp5.recipe.createsite
portal_id = erp5 portal_id = erp5
control-script = ${zope-instance:control-script} control-script = ${zope-instance:control-script}
......
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