Skip to content

Commit e5ad23d

Browse files
committed
Adjust php and nginx deb file naming to fit new beta versioning.
1 parent 9971ba7 commit e5ad23d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/hst_autocompile.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ fi
8686

8787
BUILD_ARCH='amd64'
8888
HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"
89-
NGINX_V=$(curl -s https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/nginx/control |grep "Version:" |cut -d' ' -f2 |cut -d"~" -f1)
89+
NGINX_V=$(curl -s https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/nginx/control |grep "Version:" |cut -d' ' -f2)
9090
OPENSSL_V='1.1.1g'
9191
PCRE_V='8.44'
9292
ZLIB_V='1.2.11'
93-
PHP_V=$(curl -s https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/php/control |grep "Version:" |cut -d' ' -f2 |cut -d"~" -f1)
93+
PHP_V=$(curl -s https://raw.githubusercontent.com/hestiacp/hestiacp/$branch/src/deb/php/control |grep "Version:" |cut -d' ' -f2)
9494

9595
# Create build directories
9696
rm -rf $BUILD_DIR
@@ -176,11 +176,11 @@ GIT_REP='https://raw.githubusercontent.com/hestiacp/hestiacp/'$branch'/src/deb'
176176

177177
# Generate Links for sourcecode
178178
HESTIA_ARCHIVE_LINK='https://github.com/hestiacp/hestiacp/archive/'$branch'.tar.gz'
179-
NGINX='https://nginx.org/download/nginx-'$NGINX_V'.tar.gz'
179+
NGINX='https://nginx.org/download/nginx-'$(echo $NGINX_V |cut -d"~" -f1)'.tar.gz'
180180
OPENSSL='https://www.openssl.org/source/openssl-'$OPENSSL_V'.tar.gz'
181181
PCRE='https://ftp.pcre.org/pub/pcre/pcre-'$PCRE_V'.tar.gz'
182182
ZLIB='https://www.zlib.net/zlib-'$ZLIB_V'.tar.gz'
183-
PHP='http://de2.php.net/distributions/php-'$PHP_V'.tar.gz'
183+
PHP='http://de2.php.net/distributions/php-'$(echo $PHP_V |cut -d"~" -f1)'.tar.gz'
184184

185185
# Forward slashes in branchname are replaced with dashes to match foldername in github archive.
186186
branch=$(echo "$branch" |sed 's/\//-/g');

0 commit comments

Comments
 (0)