Commit 93ccdbc7 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: runner-exporter returns error if backup fails

parent ad48f550
...@@ -78,7 +78,7 @@ recipe = hexagonit.recipe.download ...@@ -78,7 +78,7 @@ recipe = hexagonit.recipe.download
ignore-existing = true ignore-existing = true
url = ${:_profile_base_location_}/template/runner-export.sh.jinja2 url = ${:_profile_base_location_}/template/runner-export.sh.jinja2
download-only = true download-only = true
md5sum = 9dc934fe5015ff53869830a833266192 md5sum = 1bfe048194d4478d0d8743e43e72f7d8
filename = runner-export.sh.jinja2 filename = runner-export.sh.jinja2
mode = 0644 mode = 0644
......
...@@ -3,6 +3,9 @@ LC_ALL=C ...@@ -3,6 +3,9 @@ LC_ALL=C
export LC_ALL export LC_ALL
umask 077 umask 077
# Exit on any error, to prevent inconsistent backup
set -e
srv_directory={{ directory['srv'] }} srv_directory={{ directory['srv'] }}
sync_element () { sync_element () {
......
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