This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # cluster-shutdown - Properly shut down the local node by stopping the HA before | |
| # Usage: cluster-shutdown [--dry-run] | |
| DRY_RUN=false | |
| [ "$1" = "--dry-run" ] && DRY_RUN=true | |
| LOCAL=$(hostname) | |
| echo "=== cluster-shutdown (single node) ===" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # cluster-shutdown-all - Éteint proprement tout le cluster Proxmox | |
| # Stoppe le HA sur tous les nœuds puis les éteint un par un | |
| # Requiert les clés SSH root échangées entre nœuds (par défaut dans un cluster Proxmox) | |
| # Usage: cluster-shutdown-all [--dry-run] | |
| set -e | |
| DRY_RUN=false | |
| [ "$1" = "--dry-run" ] && DRY_RUN=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Update source from bookworm to trixie | |
| sed -i 's/bookworm/trixie/g' /etc/apt/sources.list | |
| apt-get update | |
| # Upgrade to trixie | |
| DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confold" dist-upgrade -y | |
| # Disable services that break in LXC / containers (harmless if not present) | |
| systemctl disable --now systemd-networkd-wait-online.service || true |