summarylogtreecommitdiffstats
path: root/mirrorlist-rankmirrors-hook.install
blob: a0e3d16877e5d218a206217a256d8463b229571d (plain)
1
2
3
4
5
6
7
8
9
post_install() {
	if [ -f "/etc/pacman.d/mirrorlist-rankmirrors.conf.pacsave" ]; then
		mv -v "/etc/pacman.d/mirrorlist-rankmirrors.conf.pacsave" "/etc/pacman.d/mirrorlist-rankmirrors.conf"
	else
		echo -ne "In order to make \033[4mmirrorlist-rankmirrors-hook\033[24m package works as expected, "
		echo -e "you need to configure \033[1m/etc/pacman.d/mirrorlist-rankmirrors.conf\033[0m file."
		echo -e "If you want to manually trigger the hook, run \033[1m/usr/share/libalpm/scripts/mirrorlist-rankmirrors\033[0m script."
	fi
}