fix: timer-parse, copy-perms, notify-deps

This commit is contained in:
humocs-man committed 2026-10-04 12:57:27 +02:00
1 parent 36ca08f4c3
commit 23e273f8c3
4 files changed
+38 -14

No files matched your search

+25 -3
View File
@@ -10,15 +10,32 @@ SYSTEMCTL="/usr/bin/systemctl"
TAG="bootc-timer"
have() { command -v "$1" >/dev/null 2>&1; }
# Harte Abhaengigkeiten pruefen (jq für bootc-JSON, notify-send für Desktop-Dialog)
# Fehlt etwas, ist das ein Build-Fehler (Paket fehlt im Image) – klar loggen statt kryptisch crashen.
if ! have jq; then
$LOGGER -t "$TAG" "FEHLER: 'jq' fehlt im Image (notify-bootc-user.sh braucht es). Abbruch."
exit 1
fi
# =============================================================================
# Flatpaks im Hintergrund aktualisieren
# Flatpaks im Hintergrund aktualisieren (nur wenn flatpak vorhanden)
# =============================================================================
$LOGGER -t "$TAG" "Suche nach Flatpak-Updates..."
$FLATPAK update -y --noninteractive || $LOGGER -t "$TAG" "Flatpak-Update fehlgeschlagen oder keine Updates vorhanden."
if have "$FLATPAK"; then
$LOGGER -t "$TAG" "Suche nach Flatpak-Updates..."
$FLATPAK update -y --noninteractive || $LOGGER -t "$TAG" "Flatpak-Update fehlgeschlagen oder keine Updates vorhanden."
else
$LOGGER -t "$TAG" "Flatpak nicht installiert, ueberspringe Flatpak-Update."
fi
# =============================================================================
# 1. Bootc Upgrade ausfuehren
# =============================================================================
if ! have "$BOOTC"; then
$LOGGER -t "$TAG" "FEHLER: '$BOOTC' fehlt im Image. Abbruch."
exit 1
fi
$LOGGER -t "$TAG" "Suche nach System-Updates (bootc)..."
$BOOTC upgrade || true
@@ -49,6 +66,11 @@ fi
$LOGGER -t "$TAG" "Sende Benachrichtigung an User-ID: $USER_ID"
if ! have "$NOTIFY"; then
$LOGGER -t "$TAG" "Update bereit, aber 'notify-send' (libnotify) fehlt im Image – keine Desktop-Benachrichtigung moeglich."
exit 0
fi
# =============================================================================
# 4. Benachrichtigung senden
# =============================================================================