Integrate Flatpak updates into notify-bootc-user.sh

Added Flatpak update functionality before bootc upgrade.
This commit is contained in:
humocs-man
2026-05-23 12:50:55 +02:00
committed by GitHub
parent 70f1fb4765
commit 47d6e12049
+9 -2
View File
@@ -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)."