aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-17 09:56:49 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-17 09:56:49 -0200
commit87b669d7fe280c99eebd4870d5f084493552c078 (patch)
treef3aec213b11f072625976c65546167763008e210
parentbb873d81289eb21f67d1da1fa4d2efc204bd0dd5 (diff)
downloadhydra-87b669d7fe280c99eebd4870d5f084493552c078.tar.gz
hydra-87b669d7fe280c99eebd4870d5f084493552c078.tar.bz2
Upgrade all flatpak packages
-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