aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO.md1
-rwxr-xr-xshare/hydractl/upgrade5
2 files changed, 5 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
index 0eb7a69..607fbad 100644
--- a/TODO.md
+++ b/TODO.md
@@ -3,6 +3,5 @@ TODO
* hydractl
* aperiodic-upgrade: run hydractl upgrade if it doesn't ran for a day or more.
- * upgrade: run flatpak upgrade if available.
* sync-tpc: way to ignore /var/cache/qemu and other files from syncing,
perhaps a .sync-tpc-ignore.
diff --git a/share/hydractl/upgrade b/share/hydractl/upgrade
index 4b81e7f..ce4492c 100755
--- a/share/hydractl/upgrade
+++ b/share/hydractl/upgrade
@@ -44,6 +44,11 @@ hydractl chroot-upgrade
# Upgrade all pbuilder chroots
hydractl pbuilder-upgrade
+# Upgrade all flatpak packages
+if which flatpak &> /dev/null
+ $sudo flatpak update
+fi
+
# Cleanup
if [ "$CLEAN" != "noclean" ]; then
$sudo apt-get clean