mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-24 12:09:40 +01:00
systemd/user: attempt to flatpak-update-user.{service,timer}
This commit is contained in:
parent
b8f720fa7f
commit
b36fe67bc3
7
etc/systemd/user/flatpak-update-user.service
Normal file
7
etc/systemd/user/flatpak-update-user.service
Normal file
@ -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
|
15
etc/systemd/user/flatpak-update-user.timer
Normal file
15
etc/systemd/user/flatpak-update-user.timer
Normal file
@ -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
Block a user