CRITICAL FIX: plesk-helpers.sh was never loaded - wrong path

Issue: system-detect.sh tried to source $SCRIPT_DIR/plesk-helpers.sh
but plesk-helpers.sh is in lib/ directory.

Fix: Changed to ${LIB_DIR:-$SCRIPT_DIR/lib}/plesk-helpers.sh

This caused ALL Plesk helper functions to be unavailable:
- plesk_list_domains()
- plesk_get_owner()
- plesk_get_docroot()
- etc.

Result: Plesk servers showed 0 users, 0 domains, 0 databases

Testing: Will verify on Plesk server after push
This commit is contained in:
cschantz
2025-12-24 16:28:06 -05:00
parent 4954d12b9c
commit c56093fdcb
+2 -2
View File
@@ -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}"