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