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
This commit is contained in:
cschantz
2025-12-10 21:11:11 -05:00
parent 92bbf385e3
commit 42584b8589
2 changed files with 7 additions and 4 deletions
+4 -3
View File
@@ -1968,9 +1968,10 @@ control_panel_paths:
suggested_restore: "/var/www/vhosts/temp/restore20251210/mysql" suggested_restore: "/var/www/vhosts/temp/restore20251210/mysql"
sql_output: "/var/www/vhosts/temp/restore20251210/" sql_output: "/var/www/vhosts/temp/restore20251210/"
interworx: interworx:
home_base: "/home" home_base: "/chroot/home"
suggested_restore: "/home/temp/restore20251210/mysql" suggested_restore: "/chroot/home/temp/restore20251210/mysql"
sql_output: "/home/temp/restore20251210/" sql_output: "/chroot/home/temp/restore20251210/"
note: "Uses /chroot/home directly (not /home symlink) as system doesn't display /home properly"
standalone: standalone:
home_base: "/home" home_base: "/home"
suggested_restore: "/home/temp/restore20251210/mysql" suggested_restore: "/home/temp/restore20251210/mysql"
+3 -1
View File
@@ -72,7 +72,9 @@ detect_control_panel() {
# InterWorx stores logs in /home/user/var/domain.com/logs/ # InterWorx stores logs in /home/user/var/domain.com/logs/
# We set a marker path that tools will recognize needs special handling # We set a marker path that tools will recognize needs special handling
SYS_LOG_DIR="/home/*/var/*/logs" 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}" print_success "Detected InterWorx v${SYS_CONTROL_PANEL_VERSION}"
return 0 return 0