From 47d6e120495e33ecc014530027038ca3d1854877 Mon Sep 17 00:00:00 2001 From: humocs-man <251756307+humocs-man@users.noreply.github.com> Date: Sat, 23 May 2026 12:50:55 +0200 Subject: [PATCH] Integrate Flatpak updates into notify-bootc-user.sh Added Flatpak update functionality before bootc upgrade. --- scripts/notify-bootc-user.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/notify-bootc-user.sh b/scripts/notify-bootc-user.sh index a8b32d9..1208d57 100755 --- a/scripts/notify-bootc-user.sh +++ b/scripts/notify-bootc-user.sh @@ -3,6 +3,7 @@ set -euo pipefail # Pfade BOOTC="/usr/bin/bootc" +FLATPAK="/usr/bin/flatpak" LOGGER="/usr/bin/logger" LOGINCTL="/usr/bin/loginctl" NOTIFY="/usr/bin/notify-send" @@ -11,10 +12,16 @@ SYSTEMCTL="/usr/bin/systemctl" TAG="bootc-timer" -# 1. Upgrade ausführen +# ============================================================================= +# Flatpaks im Hintergrund aktualisieren +# ============================================================================= +$LOGGER -t "$TAG" "Suche nach Flatpak-Updates..." +$FLATPAK update -y --noninteractive + +# 1. Upgrade ausführen (dein bestehender Code) $BOOTC upgrade -# 2. Status-Check mit jq +# 2. Status-Check mit jq ... (Rest des Skripts bleibt exakt gleich) if $BOOTC status --json | jq -e '.status.staged == null' >/dev/null; then # KEIN Update gefunden $LOGGER -t "$TAG" "System aktuell (keine Updates vorhanden)."