|
@@ -159,14 +159,14 @@ function upgrade_xmpp {
|
159
|
159
|
wget $prosody_nightly_url
|
160
|
160
|
if [ ! -f ${INSTALL_DIR}/${prosody_filename}.tar.gz ]; then
|
161
|
161
|
echo $"Failed to download prosody nightly $prosody_nightly_url"
|
162
|
|
- exit 345782
|
|
162
|
+ return
|
163
|
163
|
fi
|
164
|
164
|
|
165
|
165
|
hash_value=$(sha256sum ${INSTALL_DIR}/${prosody_filename}.tar.gz | awk -F ' ' '{print $1}')
|
166
|
166
|
if [[ "$hash_value" != "$prosody_nightly_hash" ]]; then
|
167
|
167
|
rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
|
168
|
168
|
echo $'Unexpected hash value for prosody nightly download'
|
169
|
|
- exit 6824283
|
|
169
|
+ return
|
170
|
170
|
fi
|
171
|
171
|
|
172
|
172
|
tar -xzvf ${INSTALL_DIR}/${prosody_filename}.tar.gz
|
|
@@ -178,7 +178,7 @@ function upgrade_xmpp {
|
178
|
178
|
echo $'Failed to build prosody nightly to /usr/bin'
|
179
|
179
|
rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
|
180
|
180
|
rm -rf ${INSTALL_DIR}/${prosody_filename}
|
181
|
|
- exit 3672345
|
|
181
|
+ return
|
182
|
182
|
fi
|
183
|
183
|
rm ${INSTALL_DIR}/${prosody_filename}.tar.gz
|
184
|
184
|
fi
|