install.sh Bootstrap
install.sh „bootstrap-fähig“ machen
This commit is contained in:
+24
@@ -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
|
||||
Reference in New Issue
Block a user