From: Ismaƫl Bouya Date: Mon, 30 Dec 2024 17:09:14 +0000 (+0100) Subject: Replace git clone by tarball X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=HEAD;p=perso%2FImmae%2FConfig%2Ftinc%2Fhosts.git Replace git clone by tarball --- diff --git a/ImmaeEu-up b/ImmaeEu-up index 072bce1..db3cfd8 100755 --- a/ImmaeEu-up +++ b/ImmaeEu-up @@ -30,4 +30,8 @@ if false; then # Allow accessing the external world from the ip ip -6 route add default via $GWIP dev $INTERFACE table 655 fi -(cd "$SCRIPT_DIR" && git pull -q origin master) || true +TARBALL=$(curl -s https://vpn.immae.eu/hosts.tar.gz | base64 -w0) +if echo "$TARBALL" | base64 -d | tar -tz >/dev/null; then + rm -f $SCRIPT_DIR/* || true + echo "$TARBALL" | base64 -d | tar -C "$SCRIPT_DIR" -xz --strip-components=1 +fi