File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ HESTIA_B='true'
122122GIT_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'
126126NGINX=' https://nginx.org/download/nginx-' $NGINX_V ' .tar.gz'
127127OPENSSL=' https://www.openssl.org/source/openssl-' $OPENSSL_V ' .tar.gz'
128128PCRE=' 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
Original file line number Diff line number Diff line change 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"
66fi
77HESTIA_BACKUP=" /root/hst_upgrade/$( date +%d%m%Y%H%M) "
Original file line number Diff line number Diff line change 175175GIT_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'
179179NGINX=' https://nginx.org/download/nginx-' $NGINX_V ' .tar.gz'
180180OPENSSL=' https://www.openssl.org/source/openssl-' $OPENSSL_V ' .tar.gz'
181181PCRE=' 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
You can’t perform that action at this time.
0 commit comments