Files
Docker/run.sh
2026-03-05 14:54:03 +01:00

18 lines
344 B
Bash

#!/usr/bin/env bash
set -euo pipefail
BASE="https://git.thomasmlg.fr/thomas/Docker/raw/branch/release"
DIR="/opt/lxc-updater"
mkdir -p "$DIR"
cd "$DIR"
curl -fsSL "$BASE/detect.sh" -o detect.sh
curl -fsSL "$BASE/update.sh" -o update.sh
chmod +x detect.sh update.sh
METHOD="$(./detect.sh)"
echo "[run] method=$METHOD"
./update.sh "$METHOD"