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
|
# Pfade
|
||||||
BOOTC="/usr/bin/bootc"
|
BOOTC="/usr/bin/bootc"
|
||||||
|
FLATPAK="/usr/bin/flatpak"
|
||||||
LOGGER="/usr/bin/logger"
|
LOGGER="/usr/bin/logger"
|
||||||
LOGINCTL="/usr/bin/loginctl"
|
LOGINCTL="/usr/bin/loginctl"
|
||||||
NOTIFY="/usr/bin/notify-send"
|
NOTIFY="/usr/bin/notify-send"
|
||||||
@@ -11,10 +12,16 @@ SYSTEMCTL="/usr/bin/systemctl"
|
|||||||
|
|
||||||
TAG="bootc-timer"
|
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
|
$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
|
if $BOOTC status --json | jq -e '.status.staged == null' >/dev/null; then
|
||||||
# KEIN Update gefunden
|
# KEIN Update gefunden
|
||||||
$LOGGER -t "$TAG" "System aktuell (keine Updates vorhanden)."
|
$LOGGER -t "$TAG" "System aktuell (keine Updates vorhanden)."
|
||||||
|
|||||||
Reference in New Issue
Block a user