Commit a72f7ec5 authored by Łukasz Nowak's avatar Łukasz Nowak

Protect against empty script fail-positive result

parent ea678876
...@@ -57,6 +57,10 @@ fi ...@@ -57,6 +57,10 @@ fi
DEPLOYMENT_SCRIPT=/tmp/test-script-deployment.bash.$$ DEPLOYMENT_SCRIPT=/tmp/test-script-deployment.bash.$$
wget -O $DEPLOYMENT_SCRIPT -q $SCRIPTURL wget -O $DEPLOYMENT_SCRIPT -q $SCRIPTURL
if [[ ! -s "$DEPLOYMENT_SCRIPT" ]] ; then
echo "exit 1" > $DEPLOYMENT_SCRIPT
fi
try=1 try=1
while true; do while true; do
echo "$0: Try $try. Running '/bin/bash $DEPLOYMENT_SCRIPT'" >> $LOG_FILE 2>&1 echo "$0: Try $try. Running '/bin/bash $DEPLOYMENT_SCRIPT'" >> $LOG_FILE 2>&1
......
...@@ -12,7 +12,7 @@ recipe = slapos.recipe.download ...@@ -12,7 +12,7 @@ recipe = slapos.recipe.download
ignore-existing = true ignore-existing = true
filename = in-vm-test filename = in-vm-test
url = ${:_profile_base_location_}/${:filename} url = ${:_profile_base_location_}/${:filename}
md5sum = 20a1086d749d831692ec8e3e7e5c9184 md5sum = 67368520461951f3771a16ddf5b18353
mode = 0644 mode = 0644
download-only = true download-only = true
on-update = true on-update = true
......
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