systemd: add flatpak-update.{service,timer}

Resolves: #121
This commit is contained in:
Aminda Suomalainen 2021-12-18 13:45:53 +02:00
parent ab7480c00b
commit 1356fccd20
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[Unit]
Description=install flatpak updates and uninstall unused flatpaks
[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak update --assumeyes --noninteractive
ExecStartPost=/usr/bin/flatpak uninstall --unused --assumeyes --noninteractive

View File

@ -0,0 +1,11 @@
[Unit]
Description=install flatpak updates and uninstall unused flatpaks daily
[Timer]
OnCalendar=*-*-* 19:00:00
OnBootSec=300
RandomizedDelaySec=3h
Persistent=true
[Install]
WantedBy=timers.target