fix: greeter-tmpfiles, timer-parse, copy-perms, notify-deps
This commit is contained in:
1 parent
28fc45de63
commit
ebb2e9d906
5 files changed
+53
-21
No files matched your search
@@ -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
|
||||
|
||||
@@ -50,6 +67,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
|
||||
# =============================================================================
|
||||
|
||||
Reference in new issue
Block a user