Integrate Flatpak updates into notify-bootc-user.sh
Added Flatpak update functionality before bootc upgrade.
This commit is contained in:
@@ -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)."
|
||||
|
||||
Reference in New Issue
Block a user