Autostart-Eintrag vor setup-base.sh anlegen

Autostart fuer setup-desktop.sh wird jetzt in Phase 2 erstellt
(vor setup-base.sh), damit er auch bei Abbruch vorhanden ist.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
rene 2026-03-12 17:54:06 +01:00
parent 351a3d5ffe
commit fe5a515bfe

View file

@ -60,13 +60,9 @@ else
ok "dotfiles-rene geklont"
fi
# ── Phase 2: System-Setup (als root) ────────────────────────────────────
echo -e "\n>>> Phase 2: setup-base.sh (System)"
sudo bash "$REPO_DIR/setup-base.sh" "$MODEL"
ok "Phase 2 abgeschlossen"
# ── Phase 3: Desktop-Setup als Autostart einrichten ──────────────────────
echo -e "\n>>> Phase 3: setup-desktop.sh wird als Autostart eingerichtet"
# ── Phase 2: Desktop-Setup als Autostart einrichten (VOR base, damit es ──
# ── bei Abbruch von setup-base.sh trotzdem vorhanden ist) ───────────────
echo -e "\n>>> Phase 2: setup-desktop.sh als Autostart einrichten"
mkdir -p ~/.config/autostart
cat > ~/.config/autostart/macbook-setup-desktop.desktop <<DTEOF
[Desktop Entry]
@ -76,7 +72,12 @@ Exec=xfce4-terminal -e "bash -c 'bash $REPO_DIR/setup-desktop.sh 2>&1 | tee /tmp
Hidden=false
X-GNOME-Autostart-enabled=true
DTEOF
ok "Autostart für setup-desktop.sh eingerichtet (lokal: $REPO_DIR)"
ok "Autostart eingerichtet (lokal: $REPO_DIR)"
# ── Phase 3: System-Setup (als root) ────────────────────────────────────
echo -e "\n>>> Phase 3: setup-base.sh (System)"
sudo bash "$REPO_DIR/setup-base.sh" "$MODEL"
ok "Phase 3 abgeschlossen"
echo ""
echo "════════════════════════════════════════════"