debug: Add version echo at script start for verification

This commit is contained in:
Muhammad Ibrahim
2025-10-02 13:14:38 +01:00
parent 2abc9b1f8a
commit 8c326c8fe2

View File

@@ -4,6 +4,9 @@ set -euo pipefail # Exit on error, undefined vars, pipe failures
# Trap to catch any unexpected exits
trap 'echo "[ERROR] Script exited unexpectedly at line $LINENO with exit code $?"' ERR EXIT
SCRIPT_VERSION="1.0.0-debug.5"
echo "[DEBUG] Script Version: $SCRIPT_VERSION ($(date +%Y-%m-%d\ %H:%M:%S))"
# =============================================================================
# PatchMon Proxmox LXC Auto-Enrollment Script
# =============================================================================
@@ -20,8 +23,6 @@ trap 'echo "[ERROR] Script exited unexpectedly at line $LINENO with exit code $?
# - Network access to PatchMon server
# =============================================================================
set -e
# ===== CONFIGURATION =====
PATCHMON_URL="${PATCHMON_URL:-https://patchmon.example.com}"
AUTO_ENROLLMENT_KEY="${AUTO_ENROLLMENT_KEY:-}"