Skip to content

Commit 0a94732

Browse files
committed
Merge branch 'openssl3.0' into beta/1.6.0
2 parents 21e451b + c4bbb9d commit 0a94732

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/hst_autocompile.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
clear
1313

1414
# Define download function
15+
set -e
1516
download_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
@@ -215,9 +222,9 @@ fi
215222
echo "Build version $BUILD_VER, with Nginx version $NGINX_V and PHP version $PHP_V"
216223

217224
HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"
218-
OPENSSL_V='1.1.1n'
225+
OPENSSL_V='3.0.2'
219226
PCRE_V='10.39'
220-
ZLIB_V='1.2.11'
227+
ZLIB_V='1.2.12'
221228

222229
# Create build directories
223230
if [ "$KEEPBUILD" != 'true' ]; then

0 commit comments

Comments
 (0)