diff options
Diffstat (limited to 'reflector-nomirrorlist.install')
-rw-r--r-- | reflector-nomirrorlist.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/reflector-nomirrorlist.install b/reflector-nomirrorlist.install new file mode 100644 index 00000000..a30a2e0b --- /dev/null +++ b/reflector-nomirrorlist.install @@ -0,0 +1,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 +} |