systemd files for flatpak auto update
This commit is contained in:
parent
462cb92e5e
commit
e1dbfd1b5d
2 changed files with 24 additions and 0 deletions
11
scripts/systemd/flatpak-update.service
Normal file
11
scripts/systemd/flatpak-update.service
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Update Flatpak
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/flatpak update --noninteractive --assumeyes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
13
scripts/systemd/flatpak-update.timer
Normal file
13
scripts/systemd/flatpak-update.timer
Normal file
|
@ -0,0 +1,13 @@
|
|||
[Unit]
|
||||
Description=Update Flatpak
|
||||
|
||||
[Timer]
|
||||
OnBootSec=2m
|
||||
OnActiveSec=2m
|
||||
OnUnitInactiveSec=24h
|
||||
OnUnitActiveSec=24h
|
||||
AccuracySec=1h
|
||||
RandomizedDelaySec=10m
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Add table
Add a link
Reference in a new issue