diff --git a/bin/omarchy-refresh-pacman-mirrorlist b/bin/omarchy-refresh-pacman-mirrorlist new file mode 100755 index 0000000..37d21a9 --- /dev/null +++ b/bin/omarchy-refresh-pacman-mirrorlist @@ -0,0 +1,7 @@ +#!/bin/bash + +sudo tee /etc/pacman.d/mirrorlist >/dev/null <<'EOF' +Server = https://mirror.omarchy.org/$repo/os/$arch +Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch +Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch +EOF diff --git a/migrations/1751134561.sh b/migrations/1751134561.sh index 5f201ed..46a7ebf 100644 --- a/migrations/1751134561.sh +++ b/migrations/1751134561.sh @@ -1,5 +1,7 @@ echo "Add Omarchy Package Repository" +omarchy-refresh-pacman-mirrorlist + if ! grep -q "omarchy" /etc/pacman.conf; then sudo sed -i '/^\[core\]/i [omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/$arch\n' /etc/pacman.conf sudo systemctl restart systemd-timesyncd diff --git a/migrations/1756411333.sh b/migrations/1756411333.sh index 220697a..c44e9ce 100644 --- a/migrations/1756411333.sh +++ b/migrations/1756411333.sh @@ -1,7 +1,3 @@ echo "Use new Omarchy mirror as default" -sudo tee /etc/pacman.d/mirrorlist >/dev/null <<'EOF' -Server = https://mirror.omarchy.org/$repo/os/$arch -Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch -Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch -EOF +omarchy-refresh-pacman-mirrorlist