Переглянути джерело

Add logging to upgrade process

Kristan Kenney 5 роки тому
батько
коміт
a09bf52c09
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      func/upgrade.sh

+ 3 - 0
func/upgrade.sh

@@ -254,6 +254,7 @@ upgrade_complete_message_log() {
     echo "https://github.com/hestiacp/hestiacp/issues                                  "
     echo "https://github.com/hestiacp/hestiacp/issues                                  "
     echo "============================================================================="
     echo "============================================================================="
     echo 
     echo 
+    $BIN/v-log-action "system" "Info" "Updates" "Update installed (Version: $new_version)."
 }
 }
 
 
 upgrade_cleanup_message() {
 upgrade_cleanup_message() {
@@ -412,6 +413,8 @@ upgrade_init_logging() {
 
 
     # Create log file
     # Create log file
     touch $LOG
     touch $LOG
+
+    $BIN/v-log-action "system" "Info" "Updates" "Started update installation (Latest: $new_version, Previous: $VERSION)."
 }
 }
 
 
 upgrade_start_backup() {
 upgrade_start_backup() {