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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user