summaryrefslogtreecommitdiff
path: root/releng/airootfs/etc/systemd/system/reflector-once.service
blob: cb5aae617b00a57d0fbb3400ac878eff5bb40b27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=Update pacman mirrorlist with reflector
Wants=network-online.target
After=network-online.target

[Service]
Type=oneshot
ExecStart=/bin/sh -c 'reflector -c HU,AT,DE,PL,CZ,SK --protocol https --completion-percent 100 --delay 3 --latest 20 --sort rate --number 10 --download-timeout 10 --connection-timeout 5 --threads 5 --save /tmp/reflector-uj && grep -q "^Server" /tmp/reflector-uj && install -m644 /tmp/reflector-uj /etc/pacman.d/mirrorlist'
ExecStartPost=/usr/bin/systemctl disable reflector-once.service

[Install]
WantedBy=multi-user.target