Commit 58c0b326 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Cédric de Saint Martin

slaprunner: After restauration script

This permits invoke custom code after copy the instance to the right location [Working in progress for better restauration]
parent 854e4766
......@@ -52,7 +52,7 @@ mode = 0644
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/runner-import.sh.jinja2
download-only = true
md5sum = c0d05a26b06ce172efaad03c52ef92ca
md5sum = bd2df050fd40c3f31f29cc9daebebfe3
filename = runner-import.sh.jinja2
mode = 0644
......
......@@ -29,3 +29,12 @@ restore_element {{ directory['backup'] }}/runner/ {{ directory['srv'] }}/runner
restore_element {{ directory['backup'] }}/etc/ {{ directory['etc'] }} config.json ssh
cp -r {{ directory['backup'] }}/etc/.??* {{ directory['etc'] }};
{{ curl_binary }} --insecure -vg6L --max-time 5 {{ backend_url }}/isSRReady;
if [ -e {{ directory['srv'] }}/runner-import-restore ]; then
touch {{ directory['srv'] }}/runner-import-restore
chmod +x {{ directory['srv'] }}/runner-import-restore
fi
# Invoke arbitrary script to perform specific restauration
# procedure.
{{ directory['srv'] }}/runner-import-restore
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