Skip to content

Commit c8a13bb

Browse files
authored
Merge pull request hestiacp#1156 from hestiacp/fix/2020-09_v-list-user_upgrade_script
Add $HESTIA/bin/ in front v-list-user command
2 parents d4749bf + 9e70f94 commit c8a13bb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

func/upgrade.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ upgrade_send_notification_to_panel () {
246246
upgrade_send_notification_to_email () {
247247
if [ "$UPGRADE_SEND_EMAIL" = "true" ]; then
248248
# Retrieve admin email address, sendmail path, and message temp file path
249-
admin_email=$(v-list-user admin json | grep "CONTACT" | cut -d'"' -f4)
249+
admin_email=$($HESTIA/bin/v-list-user admin json | grep "CONTACT" | cut -d'"' -f4)
250250
send_mail="$HESTIA/web/inc/mail-wrapper.php"
251251
message_tmp_file="/tmp/hestia-upgrade-complete.txt"
252252

src/hst_autocompile.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ARCHIVE_DIR="$SRC_DIR/src/archive"
6868
if [ ! -z "$2" ]; then
6969
branch=$2
7070
else
71-
echo -n "Please enter the name of the branch to build from (e.g. master): "
71+
echo -n "Please enter the name of the branch to build from (e.g. main): "
7272
read branch
7373
fi
7474

@@ -213,7 +213,7 @@ if [ "$NGINX_B" = true ] ; then
213213
download_file $ZLIB '-' | tar xz
214214

215215
# Change to nginx directory
216-
cd nginx-$NGINX_V
216+
cd nginx-$(echo $NGINX_V |cut -d"~" -f1)
217217

218218
# configure nginx
219219
./configure --prefix=/usr/local/hestia/nginx \
@@ -242,7 +242,7 @@ if [ "$NGINX_B" = true ] ; then
242242

243243
# Cleare up unused files
244244
cd $BUILD_DIR
245-
rm -r nginx-$NGINX_V openssl-$OPENSSL_V pcre-$PCRE_V zlib-$ZLIB_V
245+
rm -r nginx-$(echo $NGINX_V |cut -d"~" -f1) openssl-$OPENSSL_V pcre-$PCRE_V zlib-$ZLIB_V
246246

247247
# Prepare Deb Package Folder Structure
248248
cd hestia-nginx_$NGINX_V/
@@ -330,7 +330,7 @@ if [ "$PHP_B" = true ] ; then
330330
download_file $PHP '-' | tar xz
331331

332332
# Change to php directory
333-
cd php-$PHP_V
333+
cd php-$(echo $PHP_V |cut -d"~" -f1)
334334

335335
# Configure PHP
336336
./configure --prefix=/usr/local/hestia/php \
@@ -355,7 +355,7 @@ if [ "$PHP_B" = true ] ; then
355355

356356
# Cleare up unused files
357357
cd $BUILD_DIR
358-
rm -r php-$PHP_V
358+
rm -r php-$(echo $PHP_V |cut -d"~" -f1)
359359

360360
# Prepare Deb Package Folder Structure
361361
cd hestia-php_$PHP_V/

0 commit comments

Comments
 (0)