From 67cced218ff7ee534d9ff38024dba5d7f5f22161 Mon Sep 17 00:00:00 2001 From: kai Date: Fri, 24 Apr 2026 11:58:08 +0000 Subject: [PATCH] install.sh Bootstrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit install.sh „bootstrap-fähig“ machen --- install.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..d39aa9d --- /dev/null +++ b/install.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +set -e + +echo "🚀 Starte Bootstrap Installation..." + +# 🧠 Konfiguration +GIT_REPO="ssh://git@192.168.178.5:2222/kai/workstation-config.git" +TARGET_DIR="$HOME/workstation-config" + +# 📦 Repo klonen (oder aktualisieren) +if [ -d "$TARGET_DIR/.git" ]; then + echo "🔄 Repo existiert – update..." + cd "$TARGET_DIR" + git pull +else + echo "📥 Klone Repo..." + git clone "$GIT_REPO" "$TARGET_DIR" +fi + +cd "$TARGET_DIR/temp-cleanup" + +echo "⚙️ Starte eigentliche Installation..." +bash install.sh \ No newline at end of file