Commit a790827b authored by Rafael Monnerat's avatar Rafael Monnerat

kvm: Run bash with -e to exit in case of error

  The script were failing to generating the proof but it was continuing anyway.
  the set -e forces the script exit.
parent ac44b003
Pipeline #35003 failed with stage
in 0 seconds
...@@ -35,7 +35,7 @@ md5sum = a463a5e3cd2287d275d6943c2a11b7e4 ...@@ -35,7 +35,7 @@ md5sum = a463a5e3cd2287d275d6943c2a11b7e4
[template-kvm-import-script] [template-kvm-import-script]
filename = template/kvm-import.sh.jinja2 filename = template/kvm-import.sh.jinja2
md5sum = e95b7e827179d1cf6fa998c4535f8cd8 md5sum = 013725987114c82ca3fd11097d0a7f9f
[template-kvm-export] [template-kvm-export]
filename = instance-kvm-export.cfg.jinja2 filename = instance-kvm-export.cfg.jinja2
......
#!/bin/bash #!/bin/bash
set -e
VM_DIR={{ directory['srv'] }} VM_DIR={{ directory['srv'] }}
BACKUP_DIR={{ directory['backup'] }} BACKUP_DIR={{ directory['backup'] }}
VM_FILE=virtual.qcow2 VM_FILE=virtual.qcow2
......
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