diff options
author | Erich Eckner <git@eckner.net> | 2020-10-21 08:12:35 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-10-21 08:12:35 +0200 |
commit | 672be3ab57a5acf179366f2ce60c24b63e001fa3 (patch) | |
tree | e7a10622f50e505cccaa8a406c1ca8d2b5c3230a /reflector-nomirrorlist/reflector-nomirrorlist.install | |
parent | 14a8c158c2b598396c1b92c3186247369d65ac44 (diff) | |
download | archlinuxewe.git.save-672be3ab57a5acf179366f2ce60c24b63e001fa3.tar.xz |
reflector-nomirrorlist: moved to correct location
Diffstat (limited to 'reflector-nomirrorlist/reflector-nomirrorlist.install')
-rw-r--r-- | reflector-nomirrorlist/reflector-nomirrorlist.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/reflector-nomirrorlist/reflector-nomirrorlist.install b/reflector-nomirrorlist/reflector-nomirrorlist.install new file mode 100644 index 00000000..a30a2e0b --- /dev/null +++ b/reflector-nomirrorlist/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 +} |