#!/usr/bin/env bash set -e 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 chmod +x detect.sh update.sh METHOD=$(bash detect.sh) bash update.sh "$METHOD"