Update firstboot-setup.sh

This commit is contained in:
humocs-man
2026-03-13 10:20:03 +01:00
committed by GitHub
parent 7a165dea79
commit 0dcb26c12a
@@ -131,6 +131,7 @@ MEDIA=$(choose_list \
"Medien & Unterhaltung" \ "Medien & Unterhaltung" \
"Wiedergabe von Audio und Video:" \ "Wiedergabe von Audio und Video:" \
vlc "VLC Media Player" \ vlc "VLC Media Player" \
showtime "Gnome Video Player"
spotify "Spotify Client" \ spotify "Spotify Client" \
) )
@@ -198,6 +199,24 @@ zenity --question \
USE_BREW=$([[ $? -eq 0 ]] && echo yes || echo no) USE_BREW=$([[ $? -eq 0 ]] && echo yes || echo no)
# ----------------------------
# AutoUpdate
# ----------------------------
zenity --question \
--title="Automatische Systemaktualisierung" \
--text="Wenn diese Option aktiviert ist, prüft das System einmal pro Woche automatisch auf neue Aktualisierungen und installiert sie im Hintergrund.
Du kannst den Aktualisierungsdienst jederzeit manuell starten mit:
systemctl --user start bootc-update.service
Ohne automatische Updates kannst du Aktualisierungen jederzeit selbst anstoßen mit:
bootc upgrade"
AUTO_UPDATE=$([[ $? -eq 0 ]] && echo yes || echo no)
# ---------------------------- # ----------------------------
# Summary # Summary
# ---------------------------- # ----------------------------
@@ -211,7 +230,9 @@ EMail: ${MAIL:-keine}
Entwicklung: ${DEV:-keine} Entwicklung: ${DEV:-keine}
System: ${SYSTEM:-keine} System: ${SYSTEM:-keine}
Homebrew: $USE_BREW" Homebrew: $USE_BREW
Automatische Updates: $AUTO_UPDATE"
zenity --question \ zenity --question \
--title="Zusammenfassung" \ --title="Zusammenfassung" \
@@ -248,6 +269,8 @@ ensure_flathub
echo "55"; echo "# Installiere Medien..." echo "55"; echo "# Installiere Medien..."
[[ "$MEDIA" == *vlc* ]] && flatpak install -y flathub org.videolan.VLC [[ "$MEDIA" == *vlc* ]] && flatpak install -y flathub org.videolan.VLC
[[ "$MEDIA" == *spotify* ]] && flatpak install -y flathub com.spotify.Client [[ "$MEDIA" == *spotify* ]] && flatpak install -y flathub com.spotify.Client
[[ "$MEDIA" == *showtime* ]] && flatpak install -y flathub org.gnome.Showtime
echo "70"; echo "# Installiere Audio/VideoTools..." echo "70"; echo "# Installiere Audio/VideoTools..."
[[ "$AV" == *shotcut* ]] && flatpak install -y flathub org.shotcut.Shotcut [[ "$AV" == *shotcut* ]] && flatpak install -y flathub org.shotcut.Shotcut
@@ -280,6 +303,13 @@ ensure_flathub
--percentage=0 \ --percentage=0 \
--auto-close --auto-close
# ----------------------------
# AutoUpdate aktivieren
# ----------------------------
if [[ "$AUTO_UPDATE" == yes ]]; then
systemctl --user enable --now bootc-update.timer
fi
# ---------------------------- # ----------------------------
# Mark wizard as done # Mark wizard as done
# ---------------------------- # ----------------------------