Files
workstation-config/install.sh
T
2026-04-24 12:01:40 +00:00

32 lines
742 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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"
# 🔍 Prüfen ob echtes Git-Repo
if [ -d "$TARGET_DIR/.git" ]; then
echo "🔄 Gültiges Repo gefunden update..."
cd "$TARGET_DIR"
git pull
else
echo "⚠️ Kein gültiges Repo gefunden"
# Falls Ordner existiert → löschen (wichtig!)
if [ -d "$TARGET_DIR" ]; then
echo "🧹 Entferne alten Ordner..."
rm -rf "$TARGET_DIR"
fi
echo "📥 Klone Repo neu..."
git clone "$GIT_REPO" "$TARGET_DIR"
fi
cd "$TARGET_DIR/temp-cleanup"
echo "⚙️ Starte Installation..."
bash install.sh