Просмотр исходного кода

Command missing path (#1383)

/usr/local/hestia/func/upgrade.sh: line 295: v-list-user: command not found
Jaap Marcus 5 лет назад
Родитель
Сommit
cc42865571
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      func/upgrade.sh

+ 2 - 2
func/upgrade.sh

@@ -292,7 +292,7 @@ upgrade_send_notification_to_email () {
 
 upgrade_send_log_to_email() {
     if [ "$UPGRADE_SEND_EMAIL_LOG" = "true" ]; then
-        admin_email=$(v-list-user admin json | grep "CONTACT" | cut -d'"' -f4)
+        admin_email=$($BIN/v-list-user admin json | grep "CONTACT" | cut -d'"' -f4)
         send_mail="$HESTIA/web/inc/mail-wrapper.php"
         cat $LOG | $send_mail -s "Update Installation Log - v${new_version}" $admin_email
     fi
@@ -764,4 +764,4 @@ upgrade_restart_services() {
 upgrade_perform_cleanup() {
     # Remove upgrade configuration file as it's not needed
     rm -f $HESTIA_INSTALL_DIR/upgrade/upgrade.conf
-}
+}