From f7ed026df45a1798ae70e958769506c3aee1e41c Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 5 Mar 2026 14:54:03 +0100 Subject: [PATCH] Actualiser run.sh --- run.sh | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/run.sh b/run.sh index c1efa93..048a20d 100644 --- a/run.sh +++ b/run.sh @@ -1,21 +1,18 @@ #!/usr/bin/env bash +set -euo pipefail -set -e - +BASE="https://git.thomasmlg.fr/thomas/Docker/raw/branch/release" DIR="/opt/lxc-updater" mkdir -p "$DIR" - cd "$DIR" -echo "Downloading latest scripts..." - -curl -fsSL https://git.thomasmlg.fr/thomas/Docker/raw/branch/main/updater/detect.sh -o detect.sh -curl -fsSL https://git.thomasmlg.fr/thomas/Docker/raw/branch/main/updater/update.sh -o update.sh -curl -fsSL https://git.thomasmlg.fr/thomas/Docker/raw/branch/main/updater/services.conf -o services.conf +curl -fsSL "$BASE/detect.sh" -o detect.sh +curl -fsSL "$BASE/update.sh" -o update.sh chmod +x detect.sh update.sh -METHOD=$(bash detect.sh) +METHOD="$(./detect.sh)" +echo "[run] method=$METHOD" -bash update.sh "$METHOD" \ No newline at end of file +./update.sh "$METHOD" \ No newline at end of file