track flatpak update timer
This commit is contained in:
8
flatpak/.config/systemd/user/flatpak-automatic.service
Normal file
8
flatpak/.config/systemd/user/flatpak-automatic.service
Normal file
@@ -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
|
||||
10
flatpak/.config/systemd/user/flatpak-automatic.timer
Normal file
10
flatpak/.config/systemd/user/flatpak-automatic.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=flatpak Automatic Update Trigger
|
||||
Documentation=man:flatpak(1)
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1h
|
||||
OnUnitInactiveSec=1d
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user