Remove unnecessary path documentation from script header and show control panel detection

- Removed control panel path documentation from script header
  (system-detect.sh already documents and shows this when it runs)

- Changed detect_control_panel from silent (>/dev/null) to visible output
  so users see what control panel was detected and which paths will be used

- Added comment explaining SYS_USER_HOME_BASE usage
This commit is contained in:
cschantz
2025-12-10 21:13:09 -05:00
parent b2eab1a54b
commit bd22fb8f12
+2 -10
View File
@@ -14,15 +14,6 @@
# - Creates SQL dumps from restored files # - Creates SQL dumps from restored files
# - Handles InnoDB system tablespace requirements # - Handles InnoDB system tablespace requirements
# - Optional force-recovery mode for corrupted databases # - Optional force-recovery mode for corrupted databases
#
# Control Panel Paths (from lib/system-detect.sh → SYS_USER_HOME_BASE):
# - cPanel: /home
# - Plesk: /var/www/vhosts
# - InterWorx: /chroot/home (actual path, /home is symlink)
# - Standalone: /home
#
# Suggested restore directory format: ${SYS_USER_HOME_BASE}/temp/restoreYYYYMMDD/mysql
# SQL output directory: ${SYS_USER_HOME_BASE}/temp/restoreYYYYMMDD/
################################################################################ ################################################################################
# Path resolution (modules/backup/script.sh → ../../) # Path resolution (modules/backup/script.sh → ../../)
@@ -37,7 +28,8 @@ if [ "$EUID" -ne 0 ]; then
fi fi
# Detect control panel for proper directory paths # Detect control panel for proper directory paths
detect_control_panel >/dev/null 2>&1 || true # This sets SYS_USER_HOME_BASE which determines restore directory location
detect_control_panel || true
################################################################################ ################################################################################
# GLOBAL VARIABLES # GLOBAL VARIABLES