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"
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"