feat: Add Proxmox LXC auto-enrollment script with dpkg error recovery

This commit is contained in:
Muhammad Ibrahim
2025-10-03 22:27:04 +01:00
parent f9bd56215d
commit 5e8cfa6b63
2 changed files with 2 additions and 38 deletions

View File

@@ -1,10 +1,10 @@
#!/bin/bash
set -euo pipefail # Exit on error, undefined vars, pipe failures
set -eo pipefail # Exit on error, pipe failures (removed -u as we handle unset vars explicitly)
# Trap to catch errors only (not normal exits)
trap 'echo "[ERROR] Script failed at line $LINENO with exit code $?"' ERR
SCRIPT_VERSION="1.1.0"
SCRIPT_VERSION="1.1.1"
echo "[DEBUG] Script Version: $SCRIPT_VERSION ($(date +%Y-%m-%d\ %H:%M:%S))"
# =============================================================================