diff --git a/lib/system-detect.sh b/lib/system-detect.sh index 0fb82cb..88d6b19 100755 --- a/lib/system-detect.sh +++ b/lib/system-detect.sh @@ -68,8 +68,8 @@ detect_control_panel() { SYS_LOG_DIR="/var/www/vhosts/system" # Source Plesk helpers for advanced functionality - if [ -f "$SCRIPT_DIR/plesk-helpers.sh" ]; then - source "$SCRIPT_DIR/plesk-helpers.sh" + if [ -f "${LIB_DIR:-$SCRIPT_DIR/lib}/plesk-helpers.sh" ]; then + source "${LIB_DIR:-$SCRIPT_DIR/lib}/plesk-helpers.sh" fi print_success "Detected Plesk v${SYS_CONTROL_PANEL_VERSION}"