Commit 099ee5ef authored by Romain Courteaud's avatar Romain Courteaud

Fix shell equality syntax.

parent 8a3e7c39
......@@ -196,7 +196,7 @@ mode = 0644
[template-backup-script]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/template-backup-script.sh.in
md5sum = ce63dd27aaea8b64f446a7aef9406873
md5sum = 92183f2d42e8ffb8112f26ecab2cdcbc
output = ${buildout:directory}/template-backup-script.sh.in
mode = 0644
......
......@@ -22,7 +22,7 @@ ${rdiff-backup-output:rdiff-backup} \
RESULT=$?
# Inform about backup status
if [ $RESULT == 0 ]
if [ $RESULT -eq 0 ]
then
${coreutils-output:echo} "`${coreutils-output:date} -u`, $${:hostname} backup success" >> $${:status_log}
else
......
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