Commit 052f4ff3 authored by Vincent Pelletier's avatar Vincent Pelletier Committed by Rafael Monnerat

software/slaprunner: egrep accepts a path as argument.

So avoid spawning "cat" only for this.
Also, variable expansion quoting.
parent 1ba91b06
...@@ -31,7 +31,7 @@ md5sum = 9db9957f452bda370cb2d5cc2e833e85 ...@@ -31,7 +31,7 @@ md5sum = 9db9957f452bda370cb2d5cc2e833e85
[template-runner-export-script] [template-runner-export-script]
filename = template/runner-export.sh.jinja2 filename = template/runner-export.sh.jinja2
md5sum = aba6f56ad7ba9e177aed5fcfcb90d926 md5sum = bbe59ef9544322d34d45d34b875dbc4e
[instance-runner-export] [instance-runner-export]
filename = instance-runner-export.cfg.in filename = instance-runner-export.cfg.in
......
...@@ -89,7 +89,7 @@ fi ...@@ -89,7 +89,7 @@ fi
sleep 5 sleep 5
sha256sum "$backup_directory_path" | sort -k 66 > "$tmp_backup_sum" sha256sum "$backup_directory_path" | sort -k 66 > "$tmp_backup_sum"
cat {{ directory['backup'] }}/backup.signature | egrep "instance/slappart.*/srv/backup/" > $tmp_filtered_signature egrep "instance/slappart.*/srv/backup/" "$backup_directory/backup.signature" > "$tmp_filtered_signature"
# If the diff fails, then the notifier will restart this script # If the diff fails, then the notifier will restart this script
if diff "$tmp_backup_sum" "$tmp_filtered_signature"; then if diff "$tmp_backup_sum" "$tmp_filtered_signature"; then
......
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