omarchy/install/preflight/mirrorlist.sh
2025-08-19 16:21:51 +02:00

11 lines
250 B
Bash

#!/bin/bash
# Set mirror to single geo setup
echo 'Server = http://mirror.23m.com/archlinux/$repo/os/$arch' |
sudo tee /etc/pacman.d/mirrorlist >/dev/null
# Update indexes if online
if ping -c5 omarchy.org &>/dev/null; then
sudo pacman -Syy
fi