Added service and timer to dl packages hourly

Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
main
Marko Korhonen 5 years ago
parent 2e34130236
commit c13916c1f5

@ -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

@ -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

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