Skip to content

Instantly share code, notes, and snippets.

View Blener's full-sized avatar

The Coding Santa Blener

  • Franca-SP, Brasil
View GitHub Profile
@Blener
Blener / upgrade_debian_12_to_13.sh
Created August 27, 2026 15:51
Update LXC Debian 12 to 13 checking if the container can be upgraded
#!/bin/bash
set -euo pipefail
#based on https://gist.github.com/aerodomigue/0320ec3dffbc60caeaee8a6fc83cb470, thank you aerodomigue
# --- Safety check: only run on Debian 12 (bookworm) ---
if [ ! -r /etc/os-release ]; then
echo "ERROR: /etc/os-release not found, cannot verify OS. Aborting." >&2
exit 1
fi