Commit ba8d5320 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: lightened part slapos-repo-config, with some security added for updates

parent 8e946715
...@@ -543,9 +543,8 @@ location = $${directory:project}/slapos ...@@ -543,9 +543,8 @@ location = $${directory:project}/slapos
[slapos-repo-config] [slapos-repo-config]
recipe = plone.recipe.command recipe = plone.recipe.command
stop-on-error = true stop-on-error = true
reference = $${slap-parameter:slapos-reference} command = cd $${slapos-repo:location} && ${git:location}/bin/git checkout $${slap-parameter:slapos-reference} && SR=$${slap-parameter:slapos-software} && if [ -n "$SR" ] && [ ! -f "$${directory:etc}/.project" ]; then echo workspace/slapos/$${slap-parameter:slapos-software}/ > $${directory:etc}/.project; fi
location = $${slapos-repo:location} update-command = true
command = cd $${:location} && ${git:location}/bin/git checkout $${:reference} && echo "$${directory:etc}/.project" && SR=$${slap-parameter:slapos-software} && if [ -n "$SR" ] && [ ! -f "$${directory:etc}/.project" ]; then echo workspace/slapos/$${slap-parameter:slapos-software}/ > $${directory:etc}/.project; fi
[prepare-software] [prepare-software]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
......
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