From 647036bfc0e5a7a0a31ded3ad2cbc1ddf1b340f6 Mon Sep 17 00:00:00 2001 From: cschantz Date: Wed, 10 Dec 2025 21:11:11 -0500 Subject: [PATCH] Fix InterWorx to use /chroot/home instead of /home symlink Changes to lib/system-detect.sh: - Changed SYS_USER_HOME_BASE from /home to /chroot/home for InterWorx - Reason: System doesn't display /home properly even though it's a symlink - Added comment explaining InterWorx chroot structure InterWorx Directory Structure: - InterWorx uses /chroot/home as actual directory - /home is a symlink to /chroot/home (ln -fs /chroot/home /home) - Using actual path prevents display/visibility issues Impact on MySQL Restore Tool: - Restore directory: /chroot/home/temp/restore20251210/mysql - SQL output: /chroot/home/temp/restore20251210/ - Ensures proper visibility in InterWorx system Changes to REFDB_FORMAT.txt: - Updated InterWorx control_panel_paths to reflect /chroot/home - Added note explaining why actual path is used instead of symlink - Documented suggested paths for InterWorx QA Status: PASSED - 0 CRITICAL, 0 HIGH issues --- REFDB_FORMAT.txt | 7 ++++--- lib/system-detect.sh | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/REFDB_FORMAT.txt b/REFDB_FORMAT.txt index 8957823..953c2c7 100644 --- a/REFDB_FORMAT.txt +++ b/REFDB_FORMAT.txt @@ -1968,9 +1968,10 @@ control_panel_paths: suggested_restore: "/var/www/vhosts/temp/restore20251210/mysql" sql_output: "/var/www/vhosts/temp/restore20251210/" interworx: - home_base: "/home" - suggested_restore: "/home/temp/restore20251210/mysql" - sql_output: "/home/temp/restore20251210/" + home_base: "/chroot/home" + suggested_restore: "/chroot/home/temp/restore20251210/mysql" + sql_output: "/chroot/home/temp/restore20251210/" + note: "Uses /chroot/home directly (not /home symlink) as system doesn't display /home properly" standalone: home_base: "/home" suggested_restore: "/home/temp/restore20251210/mysql" diff --git a/lib/system-detect.sh b/lib/system-detect.sh index 40b2c25..30c8693 100755 --- a/lib/system-detect.sh +++ b/lib/system-detect.sh @@ -72,7 +72,9 @@ detect_control_panel() { # InterWorx stores logs in /home/user/var/domain.com/logs/ # We set a marker path that tools will recognize needs special handling SYS_LOG_DIR="/home/*/var/*/logs" - SYS_USER_HOME_BASE="/home" + # InterWorx uses /chroot/home (with /home as symlink) + # Use actual path as system doesn't show /home properly + SYS_USER_HOME_BASE="/chroot/home" print_success "Detected InterWorx v${SYS_CONTROL_PANEL_VERSION}" return 0