Skip to content

Commit 1ffad84

Browse files
author
Kristan Kenney
committed
Update compilation routine/version checks
Pull versions for hestia-nginx and hestia-php from their debian control files. Do not use hardcoded version values in compiler script. Fixes hestiacp#460.
1 parent 89295ed commit 1ffad84

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/deb/nginx/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia-nginx
22
Package: hestia-nginx
33
Priority: optional
4-
Version: 1.16.0
4+
Version: 1.17.1
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

src/hst_autocompile.sh

Lines changed: 2 additions & 2 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='1.17.1'
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.1b'
9191
PCRE_V='8.43'
9292
ZLIB_V='1.2.11'
93-
PHP_V='7.3.6'
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

0 commit comments

Comments
 (0)