Synchronise aussi le projet d'Ethan dans les scripts Proxmox

This commit is contained in:
2026-04-12 17:24:14 +02:00
parent a3d3bd18a9
commit 89f0858bce
5 changed files with 212 additions and 69 deletions

View File

@@ -23,6 +23,8 @@ Variables d'environnement reconnues :
CHESSCUBING_CTID
CHESSCUBING_LXC_HOSTNAME
CHESSCUBING_GIT_BRANCH
CHESSCUBING_ETHAN_REPO_URL
CHESSCUBING_ETHAN_GIT_BRANCH
EOF
}
@@ -87,6 +89,8 @@ PROXMOX_PASSWORD="${CHESSCUBING_PROXMOX_PASSWORD:-}"
SSH_PORT="${CHESSCUBING_SSH_PORT:-22}"
CTID="${CHESSCUBING_CTID:-}"
LXC_HOSTNAME="${CHESSCUBING_LXC_HOSTNAME:-chesscubing-web}"
ETHAN_REPO_URL="${CHESSCUBING_ETHAN_REPO_URL:-https://git.jeannerot.fr/Mineloulou/Chesscubing.git}"
ETHAN_REPO_BRANCH="${CHESSCUBING_ETHAN_GIT_BRANCH:-main}"
if [[ -z "$LOCAL_MODE" && -z "$PROXMOX_HOST" ]]; then
if have_cmd pct && have_cmd pveam; then
@@ -124,6 +128,8 @@ chmod +x "$TMP_DIR/update-proxmox-lxc.sh"
cmd=(
"$TMP_DIR/update-proxmox-lxc.sh"
--branch "$REPO_BRANCH"
--ethan-repo-url "$ETHAN_REPO_URL"
--ethan-branch "$ETHAN_REPO_BRANCH"
)
if [[ "$LOCAL_MODE" == "1" ]]; then