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