mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-04-18 00:12:17 +00:00
fix(turnkey): replace diagnostics_check with inline config read
diagnostics_check() is defined in build.func which is not sourced. Read the diagnostics config file directly instead — respects existing user preference without prompting (turnkey has no settings menu).
This commit is contained in:
@@ -152,7 +152,13 @@ fi
|
||||
pve_check
|
||||
shell_check
|
||||
root_check
|
||||
diagnostics_check
|
||||
|
||||
# Read diagnostics preference (same logic as build.func diagnostics_check)
|
||||
DIAG_CONFIG="/usr/local/community-scripts/diagnostics"
|
||||
if [[ -f "$DIAG_CONFIG" ]]; then
|
||||
DIAGNOSTICS=$(awk -F '=' '/^DIAGNOSTICS/ {print $2}' "$DIAG_CONFIG") || true
|
||||
DIAGNOSTICS="${DIAGNOSTICS:-no}"
|
||||
fi
|
||||
|
||||
header_info
|
||||
whiptail --backtitle "Proxmox VE Helper Scripts" --title "TurnKey LXCs" --yesno \
|
||||
|
||||
Reference in New Issue
Block a user