summaryrefslogtreecommitdiff
path: root/reflector32-nomirrorlist/reflector32-nomirrorlist.install
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-06-01 20:56:37 +0200
committerErich Eckner <git@eckner.net>2021-06-01 20:56:37 +0200
commit63e769138e26f4186d0509fc6140d89d2305e8a5 (patch)
treea180021f48e57f903c3a4b28abc26888e68f5d21 /reflector32-nomirrorlist/reflector32-nomirrorlist.install
parent53c4a760f03e77618a0a4bb094292bbac3717a11 (diff)
downloadarchlinuxewe-63e769138e26f4186d0509fc6140d89d2305e8a5.tar.xz
reflector32-nomirrorlist new
Diffstat (limited to 'reflector32-nomirrorlist/reflector32-nomirrorlist.install')
-rw-r--r--reflector32-nomirrorlist/reflector32-nomirrorlist.install17
1 files changed, 17 insertions, 0 deletions
diff --git a/reflector32-nomirrorlist/reflector32-nomirrorlist.install b/reflector32-nomirrorlist/reflector32-nomirrorlist.install
new file mode 100644
index 000000000..ac3171cf1
--- /dev/null
+++ b/reflector32-nomirrorlist/reflector32-nomirrorlist.install
@@ -0,0 +1,17 @@
+post_install() {
+ echo "==> generating mirrorlist32 using config file"
+ /usr/bin/reflector32 @/etc/xdg/reflector/reflector32.conf
+
+ # check to make sure reflector timer is activated
+ if [[ ! -L "/etc/systemd/system/timers.target.wants/reflector32.timer" ]]; then
+ echo "==$ it is suggested that you activate the reflector32 systemd timer"
+ echo "==$ to periodically update the mirrorlist32! Do the following:"
+ echo ""
+ echo " sudo systemctl enable --now reflector32.timer"
+ echo ""
+ fi
+}
+
+post_update() {
+ post_install
+}