Correct the China docs and move .cn twins in the rc repository migration

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 01:02:03 -04:00
1 parent e1471efa42
commit 4eafef5025
5 files changed
+17 -7

No files matched your search

+1 -1
View File
@@ -7,6 +7,6 @@ echo "Point rc-channel installs at the rc package repository"
# shipped pairing: an administrator who chose another combination keeps it.
if grep -q "https://rc-mirror.omarchy.org/" /etc/pacman.d/mirrorlist &&
grep -q "^Server = https://pkgs.omarchy.org/edge/" /etc/pacman.conf; then
sudo sed -i "s|^Server = https://pkgs.omarchy.org/edge/|Server = https://pkgs.omarchy.org/rc/|" /etc/pacman.conf
sudo sed -i -E "s#^Server = https://pkgs\.omarchy\.(org|cn)/edge/#Server = https://pkgs.omarchy.\1/rc/#" /etc/pacman.conf
echo "Switched the [omarchy] repository to the rc channel to match this machine's rc mirror."
fi