feat: split flatpak update units into user and system (#72)

This commit is contained in:
Jorge O. Castro
2023-02-22 20:18:38 -05:00
committed by GitHub
parent 901b9aa5e9
commit 99c15be6f0
6 changed files with 40 additions and 6 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Flatpak Automatic Update
Documentation=man:flatpak(1)
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/flatpak --system update -y --noninteractive
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Flatpak Automatic Update Trigger
Documentation=man:flatpak(1)
[Timer]
OnBootSec=5m
OnCalendar=0/6:00:00
Persistent=true
[Install]
WantedBy=timers.target