Commit 17e06b4a authored by Łukasz Nowak's avatar Łukasz Nowak

- put configuration of all services in common [configuration] part


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31973 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec572b0d
......@@ -28,7 +28,7 @@ products += ${products-development:location}
# Format:
# database[@host[:port]] [user [password [unix_socket]]]
# e.g "erp5db erp5user somepassword" or "erp5db erp5user"
erp5_sql_connection_string = test@${hosts:mysql}:${ports:mysql} root
erp5_sql_connection_string = test@${configuration:mysql_host}:${configuration:mysql_port} root
bt5 =
erp5_base
erp5_forge
......@@ -10,11 +10,9 @@ parts =
mysql-instance
start-mysql-instance
[ports]
mysql = 10002
[hosts]
mysql = 127.0.0.1
[configuration]
mysql_port = 10002
mysql_host = 127.0.0.1
[mysql-bin]
recipe = collective.recipe.template
......
#!/bin/sh
${software_definition:mysql_software}/bin/mysql --no-defaults --protocol=tcp --host=${hosts:mysql} --port=${ports:mysql} $@
${software_definition:mysql_software}/bin/mysql --no-defaults --protocol=tcp --host=${configuration:mysql_host} --port=${configuration:mysql_port} $@
#!/bin/sh
${software_definition:mysql_software}/bin/mysqladmin --no-defaults --protocol=tcp --host=${hosts:mysql} --port=${ports:mysql} $@
${software_definition:mysql_software}/bin/mysqladmin --no-defaults --protocol=tcp --host=${configuration:mysql_host} --port=${configuration:mysql_port} $@
#!/bin/sh
${software_definition:mysql_software}/bin/mysqld_safe --no-defaults --port=${ports:mysql} --pid-file=${mycnf:pid} --log-error=${mycnf:err} --basedir=${mycnf:basedir} --datadir=${mycnf:datadir} --socket=${mycnf:sock}
${software_definition:mysql_software}/bin/mysqld_safe --no-defaults --port=${configuration:mysql_port} --pid-file=${mycnf:pid} --log-error=${mycnf:err} --basedir=${mycnf:basedir} --datadir=${mycnf:datadir} --socket=${mycnf:sock}
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