mirror of
https://github.com/9technologygroup/patchmon.net.git
synced 2025-10-26 09:33:40 +00:00
debug: Add version echo at script start for verification
This commit is contained in:
@@ -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:-}"
|
||||
|
||||
Reference in New Issue
Block a user