From eb433719dde7b83138bf013a1c43db64aa1615fc Mon Sep 17 00:00:00 2001 From: Muhammad Ibrahim Date: Sat, 8 Nov 2025 09:34:39 +0000 Subject: [PATCH] fixed env flag issue when auto-enrolling into proxmox --- agents/proxmox_auto_enroll.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agents/proxmox_auto_enroll.sh b/agents/proxmox_auto_enroll.sh index 04516f4..809b72e 100755 --- a/agents/proxmox_auto_enroll.sh +++ b/agents/proxmox_auto_enroll.sh @@ -318,7 +318,8 @@ while IFS= read -r line; do # Download and execute in separate steps to avoid stdin issues with piping # Pass CURL_FLAGS as environment variable to container - install_output=$(timeout 180 pct exec "$vmid" --env CURL_FLAGS="$CURL_FLAGS" -- bash -c " + install_output=$(timeout 180 pct exec "$vmid" -- bash -c " + export CURL_FLAGS='$CURL_FLAGS' cd /tmp curl \$CURL_FLAGS \ -H \"X-API-ID: $api_id\" \ @@ -458,7 +459,8 @@ if [[ ${#dpkg_error_containers[@]} -gt 0 ]]; then install_exit_code=0 # Pass CURL_FLAGS as environment variable to container - install_output=$(timeout 180 pct exec "$vmid" --env CURL_FLAGS="$CURL_FLAGS" -- bash -c " + install_output=$(timeout 180 pct exec "$vmid" -- bash -c " + export CURL_FLAGS='$CURL_FLAGS' cd /tmp curl \$CURL_FLAGS \ -H \"X-API-ID: $api_id\" \