Skip to content

Commit f0753bb

Browse files
committed
Autocompile script should not overide HESTIA env variable
1 parent 40d57fa commit f0753bb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bin/v-update-sys-hestia-git

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ HESTIA_B='true'
122122
GIT_REP='https://raw.githubusercontent.com/hestiacp/hestiacp/'$branch'/src/deb'
123123

124124
# Generate Links for sourcecode
125-
HESTIA='https://github.com/hestiacp/hestiacp/archive/'$branch'.zip'
125+
HESTIA_ARCHIVE_LINK='https://github.com/hestiacp/hestiacp/archive/'$branch'.zip'
126126
NGINX='https://nginx.org/download/nginx-'$NGINX_V'.tar.gz'
127127
OPENSSL='https://www.openssl.org/source/openssl-'$OPENSSL_V'.tar.gz'
128128
PCRE='https://ftp.pcre.org/pub/pcre/pcre-'$PCRE_V'.tar.gz'
@@ -323,7 +323,7 @@ if [ "$HESTIA_B" = true ] ; then
323323
mkdir $BUILD_DIR/hestia_$HESTIA_V
324324

325325
# Download and unpack source files
326-
download_file $HESTIA
326+
download_file $HESTIA_ARCHIVE_LINK
327327
unzip -q $branch.zip
328328
rm $branch.zip
329329

install/upgrade/1.00.0-190618.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Define vars
4-
if [ -z "$HESTIA" ]; then
4+
if [ -z "$HESTIA" ] || [ ! -f "${HESTIA}/conf/hestia.conf"]; then
55
export HESTIA="/usr/local/hestia"
66
fi
77
HESTIA_BACKUP="/root/hst_upgrade/$(date +%d%m%Y%H%M)"

src/hst_autocompile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ fi
175175
GIT_REP='https://raw.githubusercontent.com/hestiacp/hestiacp/'$branch'/src/deb'
176176

177177
# Generate Links for sourcecode
178-
HESTIA='https://github.com/hestiacp/hestiacp/archive/'$branch'.tar.gz'
178+
HESTIA_ARCHIVE_LINK='https://github.com/hestiacp/hestiacp/archive/'$branch'.tar.gz'
179179
NGINX='https://nginx.org/download/nginx-'$NGINX_V'.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'
@@ -424,7 +424,7 @@ if [ "$HESTIA_B" = true ] ; then
424424

425425
# Download and unpack source files
426426
if [ -z "$use_src_folder" ]; then
427-
download_file $HESTIA '-' 'fresh' | tar xz
427+
download_file $HESTIA_ARCHIVE_LINK '-' 'fresh' | tar xz
428428
elif [ -d $SRC_DIR ]; then
429429
cp -rf "$SRC_DIR/" $BUILD_DIR/hestiacp-$branch
430430
fi

0 commit comments

Comments
 (0)