Actualiser run.sh
This commit is contained in:
21
run.sh
21
run.sh
@@ -0,0 +1,21 @@
|
|||||||
|
#!/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"
|
||||||
Reference in New Issue
Block a user