Added service and timer to dl packages hourly
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
d002efb4a4
commit
2f8f437026
3 changed files with 23 additions and 0 deletions
|
@ -92,6 +92,12 @@ dotfiles:
|
||||||
f_ignore:
|
f_ignore:
|
||||||
src: .ignore
|
src: .ignore
|
||||||
dst: /.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:
|
profiles:
|
||||||
locale:
|
locale:
|
||||||
dotfiles:
|
dotfiles:
|
||||||
|
@ -126,6 +132,8 @@ profiles:
|
||||||
- f_sleep.conf
|
- f_sleep.conf
|
||||||
- f_fstab
|
- f_fstab
|
||||||
- f_ignore
|
- f_ignore
|
||||||
|
- f_pacman-dl.service
|
||||||
|
- f_pacman-dl.timer
|
||||||
include:
|
include:
|
||||||
- locale
|
- locale
|
||||||
- pacman
|
- pacman
|
||||||
|
|
10
root/etc/systemd/system/pacman-dl.service
Executable file
10
root/etc/systemd/system/pacman-dl.service
Executable 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
|
5
root/etc/systemd/system/pacman-dl.timer
Normal file
5
root/etc/systemd/system/pacman-dl.timer
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Download packages hourly
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=hourly
|
Loading…
Reference in a new issue