Commit 7206f2e7 authored by Mayoro Diagne's avatar Mayoro Diagne

adding script section to run it for configuration

parent 5bd41f85
...@@ -9,9 +9,14 @@ recipe = ${instance-recipe:egg}:${instance-recipe:module} ...@@ -9,9 +9,14 @@ recipe = ${instance-recipe:egg}:${instance-recipe:module}
source = ${application:location} source = ${application:location}
template = ${application-template:location}/${application-template:filename} template = ${application-template:location}/${application-template:filename}
configuration = ${application-configuration:location} configuration = ${application-configuration:location}
lampconfigure_directory = ${buildout:bin-directory}/lampconfigure
httpd_binary = ${apache:location}/bin/httpd httpd_binary = ${apache:location}/bin/httpd
mysql_binary = ${mariadb:location}/bin/mysql mysql_binary = ${mariadb:location}/bin/mysql
mysql_install_binary = ${mariadb:location}/bin/mysql_install_db mysql_install_binary = ${mariadb:location}/bin/mysql_install_db
mysql_upgrade_binary = ${mariadb:location}/bin/mysql_upgrade mysql_upgrade_binary = ${mariadb:location}/bin/mysql_upgrade
mysqld_binary = ${mariadb:location}/libexec/mysqld mysqld_binary = ${mariadb:location}/libexec/mysqld
table_name = users
constraint = `id`>1
script = ${configure-script:location}/${configure-script:filename}
...@@ -8,23 +8,29 @@ parts = ...@@ -8,23 +8,29 @@ parts =
eggs eggs
instance-recipe-egg instance-recipe-egg
downloadcache-workaround downloadcache-workaround
configure-script
extends = extends =
http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/lamp.cfg http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/lamp.cfg
http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/lamp:/stack/shacache-client.cfg http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/stack/shacache-client.cfg
allow-hosts += alastairs-place.net
[application] [application]
recipe = hexagonit.recipe.download recipe = hexagonit.recipe.download
url = http://fluxbb.org/download/releases/1.4.7/fluxbb-1.4.7.tar.bz2 url = http://fluxbb.org/download/releases/1.4.7/fluxbb-1.4.7.tar.bz2
#md5sum = Student may put here md5sum of this file, this is good idea md5sum = bc2168205d404421729cc3b040d6fe15
#If provided tarball does not contain top directory, option shall be changed to false #If provided tarball does not contain top directory, option shall be changed to false
#strip-top-level-dir = true strip-top-level-dir = true
[configure-script]
recipe = hexagonit.recipe.download
location = ${buildout:parts-directory}/${:_buildout_section_name_}
url = https://gitorious.org/~mayoro/slapos/yoro-slapos/blobs/raw/master/software/fluxbb/configure-fluxbb.py
filename = configure-fluxbb.py
download-only = True
[application-template] [application-template]
recipe = slapos.recipe.download recipe = slapos.recipe.download
url = https://gitorious.org/~mayoro/slapos/yoro-slapos/blobs/raw/master/software/fluxbb/template/config.php.in url = https://gitorious.org/~mayoro/slapos/yoro-slapos/blobs/raw/master/software/fluxbb/template/config.inc.php.in
#md5sum = Student may put here md5sum of this file, this is good idea #md5sum = Student may put here md5sum of this file, this is good idea
download-only = True download-only = True
filename = template.in filename = template.in
...@@ -32,7 +38,7 @@ mode = 0644 ...@@ -32,7 +38,7 @@ mode = 0644
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
[application-configuration] [application-configuration]
location = config.php location = config.inc.php
[instance-recipe] [instance-recipe]
egg = slapos.cookbook egg = slapos.cookbook
...@@ -49,15 +55,14 @@ mode = 0644 ...@@ -49,15 +55,14 @@ mode = 0644
[instance-recipe-egg] [instance-recipe-egg]
recipe = zc.recipe.egg recipe = zc.recipe.egg
python = python2.7 python = python2.7
eggs = ${instance-recipe:egg} eggs =
${mysql-python:egg}
[lxml-python] ${instance-recipe:egg}
find-links += http://pypi.python.org/pypi/lxml/2.3.1 slapos.toolbox[lampconfigure]
[versions] [versions]
# Use SlapOS patched zc.buildout # Use SlapOS patched zc.buildout
zc.buildout = 1.5.3-dev-SlapOS-010 zc.buildout = 1.5.3-dev-SlapOS-010
slapos.cookbook = 0.20
[downloadcache-workaround] [downloadcache-workaround]
# workaround irritating problem of hexagonit.recipe.cmmi which automatically # workaround irritating problem of hexagonit.recipe.cmmi which automatically
......
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