From 944315bac1b1d63ae58545eac7e22b1384d03f0e Mon Sep 17 00:00:00 2001 From: Marco Date: Tue, 31 Aug 2021 11:07:52 +0200 Subject: [PATCH] track flatpak update timer --- flatpak/.config/systemd/user/flatpak-automatic.service | 8 ++++++++ flatpak/.config/systemd/user/flatpak-automatic.timer | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 flatpak/.config/systemd/user/flatpak-automatic.service create mode 100644 flatpak/.config/systemd/user/flatpak-automatic.timer diff --git a/flatpak/.config/systemd/user/flatpak-automatic.service b/flatpak/.config/systemd/user/flatpak-automatic.service new file mode 100644 index 0000000..b4154c0 --- /dev/null +++ b/flatpak/.config/systemd/user/flatpak-automatic.service @@ -0,0 +1,8 @@ +[Unit] +Description=flatpak Automatic Update +Documentation=man:flatpak(1) + +[Service] +Type=simple +ExecStartPre=/bin/sh -c 'until ping -c1 google.com; do sleep 1; done;' +ExecStart=/usr/bin/flatpak update -y diff --git a/flatpak/.config/systemd/user/flatpak-automatic.timer b/flatpak/.config/systemd/user/flatpak-automatic.timer new file mode 100644 index 0000000..0c1ca53 --- /dev/null +++ b/flatpak/.config/systemd/user/flatpak-automatic.timer @@ -0,0 +1,10 @@ +[Unit] +Description=flatpak Automatic Update Trigger +Documentation=man:flatpak(1) + +[Timer] +OnBootSec=1h +OnUnitInactiveSec=1d + +[Install] +WantedBy=timers.target