feat: split flatpak update units into user and system (#72)
This commit is contained in:
12
usr/lib/systemd/system/flatpak-system-update.service
Normal file
12
usr/lib/systemd/system/flatpak-system-update.service
Normal 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
|
||||
11
usr/lib/systemd/system/flatpak-system-update.timer
Normal file
11
usr/lib/systemd/system/flatpak-system-update.timer
Normal 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
|
||||
12
usr/lib/systemd/user/flatpak-user-update.service
Normal file
12
usr/lib/systemd/user/flatpak-user-update.service
Normal 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 --user update -y --noninteractive
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
11
usr/lib/systemd/user/flatpak-user-update.timer
Normal file
11
usr/lib/systemd/user/flatpak-user-update.timer
Normal 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
|
||||
Reference in New Issue
Block a user