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 =
[configuration]
mysql_port = 10002
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_sock = ${:mysql_datadir}/mysql.sock
mysql_error_log = ${buildout:directory}/var/log/mysql.err.log
mysql_cnf_file = ${buildout:directory}/var/etc/my.cnf
mysql_error_log = ${buildout:log-directory}/mysql.err.log
mysql_cnf_file = ${buildout:etc-directory}/my.cnf
[mysql-bin]
recipe = collective.recipe.template
......@@ -32,20 +32,19 @@ input = ${buildout:directory}/mysql-instance/templates/mysqld.in
output = ${buildout:directory}/bin/mysqld
[mysql-cnf]
depends = ${etc-directory:command}
recipe = collective.recipe.template
input = ${buildout:directory}/mysql-instance/templates/my.cnf.in
output = ${configuration:mysql_cnf_file}
[mysql-instance]
depends = ${log-directory:command}
recipe = plone.recipe.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]
recipe = plone.recipe.command
command = ${buildout:bin-directory}/mysqld &
command = ${buildout:bin-directory}/mysqld --defaults-file=${configuration:mysql_cnf_file} &
update-command = ${:command}
[stop-mysql-instance]
......
......@@ -14,6 +14,10 @@ extends =
zope-2.8/buildout.cfg
zope-instance/buildout.cfg
var-directory = ${:directory}/var
etc-directory = ${:var-directory}/etc
log-directory = ${:var-directory}/log
versions = versions
find-links =
http://download.zope.org/distribution/
......@@ -53,13 +57,12 @@ command =
echo "Required header files: ${requirements:development}"
update-command = ${:command}
[etc-directory]
recipe = plone.recipe.command
command = mkdir -p ${buildout:directory}/var/etc
[log-directory]
[create-directories]
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]
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