mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Ensure new mirrorlist is added as early as possible
This commit is contained in:
7
bin/omarchy-refresh-pacman-mirrorlist
Executable file
7
bin/omarchy-refresh-pacman-mirrorlist
Executable file
@@ -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
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
echo "Add Omarchy Package Repository"
|
echo "Add Omarchy Package Repository"
|
||||||
|
|
||||||
|
omarchy-refresh-pacman-mirrorlist
|
||||||
|
|
||||||
if ! grep -q "omarchy" /etc/pacman.conf; then
|
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 sed -i '/^\[core\]/i [omarchy]\nSigLevel = Optional TrustAll\nServer = https:\/\/pkgs.omarchy.org\/$arch\n' /etc/pacman.conf
|
||||||
sudo systemctl restart systemd-timesyncd
|
sudo systemctl restart systemd-timesyncd
|
||||||
|
|||||||
@@ -1,7 +1,3 @@
|
|||||||
echo "Use new Omarchy mirror as default"
|
echo "Use new Omarchy mirror as default"
|
||||||
|
|
||||||
sudo tee /etc/pacman.d/mirrorlist >/dev/null <<'EOF'
|
omarchy-refresh-pacman-mirrorlist
|
||||||
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user