Commit 40d85cd6 authored by Łukasz Nowak's avatar Łukasz Nowak

- define directories globally

 - create common directories globally


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32445 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 66bde5df
...@@ -10,11 +10,11 @@ parts = ...@@ -10,11 +10,11 @@ parts =
[configuration] [configuration]
mysql_port = 10002 mysql_port = 10002
mysql_host = 127.0.0.1 mysql_host = 127.0.0.1
mysql_datadir = ${buildout:directory}/var/mysql mysql_datadir = ${buildout:var-directory}/mysql
mysql_pid = ${:mysql_datadir}/mysql.pid mysql_pid = ${:mysql_datadir}/mysql.pid
mysql_sock = ${:mysql_datadir}/mysql.sock mysql_sock = ${:mysql_datadir}/mysql.sock
mysql_error_log = ${buildout:directory}/var/log/mysql.err.log mysql_error_log = ${buildout:log-directory}/mysql.err.log
mysql_cnf_file = ${buildout:directory}/var/etc/my.cnf mysql_cnf_file = ${buildout:etc-directory}/my.cnf
[mysql-bin] [mysql-bin]
recipe = collective.recipe.template recipe = collective.recipe.template
...@@ -32,20 +32,19 @@ input = ${buildout:directory}/mysql-instance/templates/mysqld.in ...@@ -32,20 +32,19 @@ input = ${buildout:directory}/mysql-instance/templates/mysqld.in
output = ${buildout:directory}/bin/mysqld output = ${buildout:directory}/bin/mysqld
[mysql-cnf] [mysql-cnf]
depends = ${etc-directory:command}
recipe = collective.recipe.template recipe = collective.recipe.template
input = ${buildout:directory}/mysql-instance/templates/my.cnf.in input = ${buildout:directory}/mysql-instance/templates/my.cnf.in
output = ${configuration:mysql_cnf_file} output = ${configuration:mysql_cnf_file}
[mysql-instance] [mysql-instance]
depends = ${log-directory:command}
recipe = plone.recipe.command recipe = plone.recipe.command
command = command =
${software_definition:mysql_software}/bin/mysql_install_db --datadir=${configuration:mysql_datadir} mkdir -p ${configuration:mysql_datadir}
${buildout:bin-directory}/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 & command = ${buildout:bin-directory}/mysqld --defaults-file=${configuration:mysql_cnf_file} &
update-command = ${:command} update-command = ${:command}
[stop-mysql-instance] [stop-mysql-instance]
......
...@@ -14,6 +14,10 @@ extends = ...@@ -14,6 +14,10 @@ extends =
zope-2.8/buildout.cfg zope-2.8/buildout.cfg
zope-instance/buildout.cfg zope-instance/buildout.cfg
var-directory = ${:directory}/var
etc-directory = ${:var-directory}/etc
log-directory = ${:var-directory}/log
versions = versions versions = versions
find-links = find-links =
http://download.zope.org/distribution/ http://download.zope.org/distribution/
...@@ -53,13 +57,12 @@ command = ...@@ -53,13 +57,12 @@ command =
echo "Required header files: ${requirements:development}" echo "Required header files: ${requirements:development}"
update-command = ${:command} update-command = ${:command}
[etc-directory] [create-directories]
recipe = plone.recipe.command
command = mkdir -p ${buildout:directory}/var/etc
[log-directory]
recipe = plone.recipe.command recipe = plone.recipe.command
command = mkdir -p ${buildout:directory}/var/log command =
mkdir -p ${buildout:etc-directory}
mkdir -p ${buildout:var-directory}
mkdir -p ${buildout:log-directory}
[software_definition] [software_definition]
mysql_software = ${mysql-tritonn-5.0:location} mysql_software = ${mysql-tritonn-5.0:location}
......
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