From 207f358aa83add7d61242523d560aa2538c08b77 Mon Sep 17 00:00:00 2001 From: cschantz Date: Wed, 10 Dec 2025 21:13:09 -0500 Subject: [PATCH] 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 --- modules/backup/mysql-restore-to-sql.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/modules/backup/mysql-restore-to-sql.sh b/modules/backup/mysql-restore-to-sql.sh index 16b7a43..76830a5 100755 --- a/modules/backup/mysql-restore-to-sql.sh +++ b/modules/backup/mysql-restore-to-sql.sh @@ -14,15 +14,6 @@ # - Creates SQL dumps from restored files # - Handles InnoDB system tablespace requirements # - 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 → ../../) @@ -37,7 +28,8 @@ if [ "$EUID" -ne 0 ]; then fi # 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