Added service and timer to dl packages hourly

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
Marko Korhonen 2019-11-19 13:49:27 +02:00
parent d002efb4a4
commit 2f8f437026
No known key found for this signature in database
GPG key ID: 911B85FBC6003FE5
3 changed files with 23 additions and 0 deletions

View file

@ -92,6 +92,12 @@ dotfiles:
f_ignore:
src: .ignore
dst: /.ignore
f_pacman-dl.service:
src: etc/systemd/system/pacman-dl.service
dst: /etc/systemd/system/pacman-dl.service
f_pacman-dl.timer:
src: etc/systemd/system/pacman-dl.timer
dst: /etc/systemd/system/pacman-dl.timer
profiles:
locale:
dotfiles:
@ -126,6 +132,8 @@ profiles:
- f_sleep.conf
- f_fstab
- f_ignore
- f_pacman-dl.service
- f_pacman-dl.timer
include:
- locale
- pacman

View file

@ -0,0 +1,10 @@
[Unit]
Description=Download package updates
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/pacman -Syuw --noconfirm
[Install]
WantedBy=network-online.target

View file

@ -0,0 +1,5 @@
[Unit]
Description=Download packages hourly
[Timer]
OnCalendar=hourly