systemd/user: attempt to flatpak-update-user.{service,timer}
This commit is contained in:
parent
b8f720fa7f
commit
b36fe67bc3
|
@ -0,0 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Install user level flatpak updates and uninstall unused flatpaks
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/flatpak update --user --assumeyes --noninteractive
|
||||||
|
ExecStartPost=/usr/bin/flatpak uninstall --user --unused --assumeyes --noninteractive
|
|
@ -0,0 +1,15 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Install user level flatpak updates and uninstall unused flatpaks regularly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
#OnCalendar=*-*-* 19:00:00
|
||||||
|
# Executed every 4 hours
|
||||||
|
OnUnitActiveSec=4h
|
||||||
|
# Executed 5 minutes from boot
|
||||||
|
OnBootSec=300
|
||||||
|
# Delay execution by something between 0 seconds and 3 hours
|
||||||
|
RandomizedDelaySec=3h
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Reference in New Issue