Commit b16f2ae1 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Marco Mariani

slaprunner: Add a backup signature using sha256sum

parent 35796944
......@@ -68,7 +68,7 @@ mode = 0644
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/runner-export.sh.jinja2
download-only = true
md5sum = e74a0cbda64182c7fdff42cc46f07a12
md5sum = 827aca46c22017aa9ecfd8fedcad1fd0
filename = runner-export.sh.jinja2
mode = 0644
......
......@@ -23,3 +23,5 @@ sync_element {{ directory['etc'] }} {{ directory['backup'] }}/etc/ config.json
if [ -d {{ directory['backup'] }}/runner/software ]; then
rm {{ directory['backup'] }}/runner/software/*
fi
cd {{ directory['backup'] }} && find -type f ! -name backup.signature -exec sha256sum {} + > backup.signature
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