diff --git a/agents/proxmox_auto_enroll.sh b/agents/proxmox_auto_enroll.sh index 8cd2177..5cadf58 100755 --- a/agents/proxmox_auto_enroll.sh +++ b/agents/proxmox_auto_enroll.sh @@ -106,6 +106,9 @@ enrolled_count=0 skipped_count=0 failed_count=0 +# Close stdin to prevent any interference when piped from curl +exec 0<&- + # ===== PROCESS CONTAINERS ===== while IFS= read -r line; do vmid=$(echo "$line" | awk '{print $1}')