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)."