Commit a05928f3 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: prevents overwrite of the current software released

if the user has changed the pre-installed one
parent 540624d4
......@@ -501,7 +501,8 @@ stop-on-error = true
reference = $${slap-parameter:slapos-reference}
location = $${slapos-repo:location}
environment = export PATH=${git:location}/bin:$PATH;
command = $${:environment} (cd $${:location} && git checkout $${:reference} && SR=$${slap-parameter:slapos-software} && if [ -n "$SR" ]; then echo workspace/slapos/$${slap-parameter:slapos-software}/ > $${directory:etc}/.project; fi)
command = $${:environment} (cd $${:location} && 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)
update-command = $${:command}
[prepare-software]
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