Simplifie la mise à jour Proxmox par défaut

This commit is contained in:
2026-04-12 15:07:11 +02:00
parent 0da74c6484
commit 5582df99b7
2 changed files with 1 additions and 5 deletions

View File

@@ -100,6 +100,7 @@ bash -c "$(curl -fsSL https://git.jeannerot.fr/christophe/chesscubing/raw/branch
``` ```
Sur l'hôte Proxmox, cette commande met à jour le LXC local sans passer par SSH. Sur l'hôte Proxmox, cette commande met à jour le LXC local sans passer par SSH.
Par défaut, elle cible le conteneur `chesscubing-web` sans demander le `CTID`.
On peut aussi cibler le conteneur par nom si on n'a pas le `CTID` : On peut aussi cibler le conteneur par nom si on n'a pas le `CTID` :

View File

@@ -105,11 +105,6 @@ if [[ "$LOCAL_MODE" != "1" ]]; then
prompt_default SSH_PORT "Port SSH Proxmox" "22" prompt_default SSH_PORT "Port SSH Proxmox" "22"
fi fi
prompt_default CTID "CTID du LXC (laisser vide pour rechercher par nom)" ""
if [[ -z "$CTID" ]]; then
prompt_default LXC_HOSTNAME "Nom du LXC" "chesscubing-web"
fi
if [[ "$LOCAL_MODE" != "1" ]]; then if [[ "$LOCAL_MODE" != "1" ]]; then
[[ -n "$PROXMOX_HOST" ]] || die "Le serveur Proxmox est obligatoire." [[ -n "$PROXMOX_HOST" ]] || die "Le serveur Proxmox est obligatoire."
[[ -n "$PROXMOX_USER" ]] || die "L'utilisateur Proxmox est obligatoire." [[ -n "$PROXMOX_USER" ]] || die "L'utilisateur Proxmox est obligatoire."