File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1212clear
1313
1414# Define download function
15+ set -e
1516download_file () {
17+ set +e
1618 local url=$1
1719 local destination=$2
1820 local force=$3
@@ -50,6 +52,11 @@ download_file() {
5052 if [ ! -f " $ARCHIVE_DIR /$filename " ]; then
5153 [ " $HESTIA_DEBUG " ] && >&2 echo DEBUG: wget $url -q $dstopt --show-progress --progress=bar:force --limit-rate=3m
5254 wget $url -q $dstopt --show-progress --progress=bar:force --limit-rate=3m
55+ if [ $? -ne 0 ]; then
56+ >&2 echo " [!] Archive $ARCHIVE_DIR /$filename is corrupted and exit script" ;
57+ rm -f $ARCHIVE_DIR /$filename
58+ exit 1;
59+ fi
5360 fi
5461
5562 if [ ! -z " $destination " ] && [ " $is_archive " = " true" ]; then
215222echo " Build version $BUILD_VER , with Nginx version $NGINX_V and PHP version $PHP_V "
216223
217224HESTIA_V=" ${BUILD_VER} _${BUILD_ARCH} "
218- OPENSSL_V=' 1.1.1n '
225+ OPENSSL_V=' 3.0.2 '
219226PCRE_V=' 10.39'
220- ZLIB_V=' 1.2.11 '
227+ ZLIB_V=' 1.2.12 '
221228
222229# Create build directories
223230if [ " $KEEPBUILD " != ' true' ]; then
You can’t perform that action at this time.
0 commit comments