Commit 6b5d8af2 authored by nimrod's avatar nimrod
Browse files

Debian daily updates additions.

- Download firmware updates.
- Notify on pending updates.
parent f2ff2f21
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -11,3 +11,11 @@ then
    flatpak --system update --assumeyes
    flatpak --system uninstall --unused --assumeyes
fi

fwupdmgr --assume-yes get-updates

if  [ -n "$(apt list --upgradable 2>/dev/null)" ] || \
    [ -n "$(fwupdmgr --assume-yes get-updates)" ]
then
    curl "https://notify.shore.co.il/send?message=$(hostname --short)%20has%20pending%20updates."
fi