CODE CLARITY: Add parentheses to InterWorx detection logic

FIXED:
- InterWorx detection line now has explicit parentheses
- Makes operator precedence unambiguous for code review
- Ensures future maintainers understand the logic:
  1. Check /home/interworx exists, OR
  2. Check /usr/bin/iworx-helper exists, OR
  3. Check BOTH /chroot/home exists AND /usr/bin/nodeworx exists

No behavioral change - just improved readability and maintainability.
This commit is contained in:
Developer
2026-03-21 00:35:10 -04:00
parent fffe773e81
commit 3c5135d4e4
+1 -1
View File
@@ -679,7 +679,7 @@ if [ -z "$CONTROL_PANEL" ]; then
CONTROL_PANEL="cpanel" CONTROL_PANEL="cpanel"
elif [ -f "/usr/local/psa/version" ]; then elif [ -f "/usr/local/psa/version" ]; then
CONTROL_PANEL="plesk" CONTROL_PANEL="plesk"
elif [ -d "/home/interworx" ] || [ -f "/usr/bin/iworx-helper" ] || [ -d "/chroot/home" ] && [ -f "/usr/bin/nodeworx" ]; then elif [ -d "/home/interworx" ] || [ -f "/usr/bin/iworx-helper" ] || ([ -d "/chroot/home" ] && [ -f "/usr/bin/nodeworx" ]); then
CONTROL_PANEL="interworx" CONTROL_PANEL="interworx"
else else
CONTROL_PANEL="standalone" CONTROL_PANEL="standalone"