Browse Source

Merge pull request #1156 from hestiacp/fix/2020-09_v-list-user_upgrade_script

Add $HESTIA/bin/ in front v-list-user command
Raphael Schneeberger 5 years ago
parent
commit
c8a13bb177
2 changed files with 6 additions and 6 deletions
  1. 1 1
      func/upgrade.sh
  2. 5 5
      src/hst_autocompile.sh

+ 1 - 1
func/upgrade.sh

@@ -246,7 +246,7 @@ upgrade_send_notification_to_panel () {
 upgrade_send_notification_to_email () {
     if [ "$UPGRADE_SEND_EMAIL" = "true" ]; then
         # Retrieve admin email address, sendmail path, and message temp file path
-        admin_email=$(v-list-user admin json | grep "CONTACT" | cut -d'"' -f4)
+        admin_email=$($HESTIA/bin/v-list-user admin json | grep "CONTACT" | cut -d'"' -f4)
         send_mail="$HESTIA/web/inc/mail-wrapper.php"
         message_tmp_file="/tmp/hestia-upgrade-complete.txt"
 

+ 5 - 5
src/hst_autocompile.sh

@@ -68,7 +68,7 @@ ARCHIVE_DIR="$SRC_DIR/src/archive"
 if [ ! -z "$2" ]; then
   branch=$2
 else
-  echo -n "Please enter the name of the branch to build from (e.g. master): "
+  echo -n "Please enter the name of the branch to build from (e.g. main): "
   read branch
 fi
 
@@ -213,7 +213,7 @@ if [ "$NGINX_B" = true ] ; then
     download_file $ZLIB '-' | tar xz
 
     # Change to nginx directory
-    cd nginx-$NGINX_V
+    cd nginx-$(echo $NGINX_V |cut -d"~" -f1)
 
     # configure nginx
     ./configure   --prefix=/usr/local/hestia/nginx \
@@ -242,7 +242,7 @@ if [ "$NGINX_B" = true ] ; then
 
     # Cleare up unused files
     cd $BUILD_DIR
-    rm -r nginx-$NGINX_V openssl-$OPENSSL_V pcre-$PCRE_V zlib-$ZLIB_V
+    rm -r nginx-$(echo $NGINX_V |cut -d"~" -f1) openssl-$OPENSSL_V pcre-$PCRE_V zlib-$ZLIB_V
 
     # Prepare Deb Package Folder Structure
     cd hestia-nginx_$NGINX_V/
@@ -330,7 +330,7 @@ if [ "$PHP_B" = true ] ; then
     download_file $PHP '-' | tar xz
 
     # Change to php directory
-    cd php-$PHP_V
+    cd php-$(echo $PHP_V |cut -d"~" -f1)
 
     # Configure PHP
     ./configure   --prefix=/usr/local/hestia/php \
@@ -355,7 +355,7 @@ if [ "$PHP_B" = true ] ; then
 
     # Cleare up unused files
     cd $BUILD_DIR
-    rm -r php-$PHP_V
+    rm -r php-$(echo $PHP_V |cut -d"~" -f1)
 
     # Prepare Deb Package Folder Structure
     cd hestia-php_$PHP_V/