Return rather than exit so as not to block other upgrades

This commit is contained in:
Bob Mottram 2016-12-07 12:45:06 +00:00
parent 383a4cc2a0
commit 7c6db87b59
1 changed files with 3 additions and 3 deletions

View File

@ -159,14 +159,14 @@ function upgrade_xmpp {
wget $prosody_nightly_url
if [ ! -f ${INSTALL_DIR}/${prosody_filename}.tar.gz ]; then
echo $"Failed to download prosody nightly $prosody_nightly_url"
exit 345782
return
fi
hash_value=$(sha256sum ${INSTALL_DIR}/${prosody_filename}.tar.gz | awk -F ' ' '{print $1}')
if [[ "$hash_value" != "$prosody_nightly_hash" ]]; then
rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
echo $'Unexpected hash value for prosody nightly download'
exit 6824283
return
fi
tar -xzvf ${INSTALL_DIR}/${prosody_filename}.tar.gz
@ -178,7 +178,7 @@ function upgrade_xmpp {
echo $'Failed to build prosody nightly to /usr/bin'
rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
rm -rf ${INSTALL_DIR}/${prosody_filename}
exit 3672345
return
fi
rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
fi