Skip to content

Commit 21ccb78

Browse files
committed
Add support for revision version for hestia-php and hestia-nginx
+ Update change log
1 parent 9344e7d commit 21ccb78

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ All notable changes to this project will be documented in this file.
1111
- Fixed an issue where users where not able to download backups via UI (#2335)
1212
- Fixed an issue where php8.0 got "rounded" to php8 causing default.tpl falling back to 8.1 (#2340)
1313
- Fixed an issue with recalculating disk usage (#2341)
14+
- Fixed an issue where php files where still executable in upload folder Wordpress
15+
- Fixed an bug where version numbers includeing revisions (-x) where unable to build properly
1416

1517
## [1.5.3] - Service release
1618

src/hst_autocompile.sh

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,19 @@ fi
288288

289289
# Generate Links for sourcecode
290290
HESTIA_ARCHIVE_LINK='https://github.com/hestiacp/hestiacp/archive/'$branch'.tar.gz'
291-
NGINX='https://nginx.org/download/nginx-'$(echo $NGINX_V |cut -d"~" -f1)'.tar.gz'
291+
if [[ $NGINX_V =~ - ]]; then
292+
NGINX='https://nginx.org/download/nginx-'$(echo $NGINX_V |cut -d"-" -f1)'.tar.gz'
293+
else
294+
NGINX='https://nginx.org/download/nginx-'$(echo $NGINX_V |cut -d"~" -f1)'.tar.gz'
295+
fi
292296
OPENSSL='https://www.openssl.org/source/openssl-'$OPENSSL_V'.tar.gz'
293297
PCRE='https://github.com/PhilipHazel/pcre2/releases/download/pcre2-'$PCRE_V'/pcre2-'$PCRE_V'.tar.gz'
294298
ZLIB='https://www.zlib.net/zlib-'$ZLIB_V'.tar.gz'
295-
PHP='http://de2.php.net/distributions/php-'$(echo $PHP_V |cut -d"~" -f1)'.tar.gz'
299+
if [[ $PHP_V =~ - ]]; then
300+
PHP='http://de2.php.net/distributions/php-'$(echo $PHP_V |cut -d"-" -f1)'.tar.gz'
301+
else
302+
PHP='http://de2.php.net/distributions/php-'$(echo $PHP_V |cut -d"~" -f1)'.tar.gz'
303+
fi
296304

297305
# Forward slashes in branchname are replaced with dashes to match foldername in github archive.
298306
branch_dash=$(echo "$branch" |sed 's/\//-/g');
@@ -313,8 +321,12 @@ if [ "$NGINX_B" = true ] ; then
313321
cd $BUILD_DIR
314322

315323
BUILD_DIR_HESTIANGINX=$BUILD_DIR/hestia-nginx_$NGINX_V
316-
BUILD_DIR_NGINX=$BUILD_DIR/nginx-$(echo $NGINX_V |cut -d"~" -f1)
317-
324+
if [[ $NGINX_V =~ - ]]; then
325+
BUILD_DIR_NGINX=$BUILD_DIR/nginx-$(echo $NGINX_V |cut -d"-" -f1)
326+
else
327+
BUILD_DIR_NGINX=$BUILD_DIR/nginx-$(echo $NGINX_V |cut -d"~" -f1)
328+
fi
329+
318330
if [ "$KEEPBUILD" != 'true' ] || [ ! -d "$BUILD_DIR_HESTIANGINX" ]; then
319331
# Check if target directory exist
320332
if [ -d "$BUILD_DIR_HESTIANGINX" ]; then
@@ -456,8 +468,15 @@ if [ "$PHP_B" = true ] ; then
456468
echo "Building hestia-php package..."
457469

458470
BUILD_DIR_HESTIAPHP=$BUILD_DIR/hestia-php_$PHP_V
471+
459472
BUILD_DIR_PHP=$BUILD_DIR/php-$(echo $PHP_V |cut -d"~" -f1)
460-
473+
474+
if [[ $PHP_V =~ - ]]; then
475+
BUILD_DIR_PHP=$BUILD_DIR/php-$(echo $PHP_V |cut -d"-" -f1)
476+
else
477+
BUILD_DIR_PHP=$BUILD_DIR/php-$(echo $PHP_V |cut -d"~" -f1)
478+
fi
479+
461480
if [ "$KEEPBUILD" != 'true' ] || [ ! -d "$BUILD_DIR_HESTIAPHP" ]; then
462481
# Check if target directory exist
463482
if [ -d $BUILD_DIR_HESTIAPHP ]; then

0 commit comments

Comments
 (0)