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:
@@ -679,7 +679,7 @@ if [ -z "$CONTROL_PANEL" ]; then
|
||||
CONTROL_PANEL="cpanel"
|
||||
elif [ -f "/usr/local/psa/version" ]; then
|
||||
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"
|
||||
else
|
||||
CONTROL_PANEL="standalone"
|
||||
|
||||
Reference in New Issue
Block a user