summaryrefslogtreecommitdiff
path: root/reflector-nomirrorlist/reflector-nomirrorlist.install
blob: a30a2e0b869859bf2b7f4537e262b1bc6798032f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
    echo "==> generating mirrorlist using config file"
    /usr/bin/reflector @/etc/xdg/reflector/reflector.conf

    # check to make sure reflector timer is activated
    if [[ ! -L "/etc/systemd/system/timers.target.wants/reflector.timer" ]]; then
        echo "==$ it is suggested that you activate the reflector systemd timer"
        echo "==$ to periodically update the mirrorlist! Do the following:"
        echo ""
        echo "  sudo systemctl enable --now reflector.timer"
        echo ""
    fi
}

post_update() {
    post_install
}