mirror of
https://git.myvelabs.com/lab/archlinux.git
synced 2025-12-17 19:46:25 +00:00
Update mirrorlist url
This commit is contained in:
parent
36ad41a2fc
commit
e62bbcd2cb
2 changed files with 3 additions and 2 deletions
|
|
@ -573,8 +573,9 @@ polkit
|
||||||
# Custom pacman wrapper
|
# Custom pacman wrapper
|
||||||
install /dev/stdin /usr/local/bin/syu <<syu
|
install /dev/stdin /usr/local/bin/syu <<syu
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
mirrorlist=https://git.myvelabs.com/lab/mirrors/raw/branch/master/mirrorlist
|
||||||
|
|
||||||
sudo curl --fail -s -L wdas.sh/mirrorlist -o /etc/pacman.d/mirrorlist
|
sudo curl --fail --silent ${mirrorlist} -o /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
if checkupdates | grep -q 'archlinux-keyring'
|
if checkupdates | grep -q 'archlinux-keyring'
|
||||||
then
|
then
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ sed -e "/Color/c Color" \
|
||||||
if nc -z -w 1 archlinux.org 443 >/dev/null 2>&1 || nc -z -w 1 google.com 443 >/dev/null 2>&1
|
if nc -z -w 1 archlinux.org 443 >/dev/null 2>&1 || nc -z -w 1 google.com 443 >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
timedatectl set-ntp true
|
timedatectl set-ntp true
|
||||||
curl --fail --silent https://git.myvelabs.com/lab/archlinux/raw/branch/master/mirrorlist -o /etc/pacman.d/mirrorlist || die "Unable to fetch latest mirrorlist"
|
curl --fail --silent https://git.myvelabs.com/lab/mirrors/raw/branch/master/mirrorlist -o /etc/pacman.d/mirrorlist || die "Unable to fetch latest mirrorlist"
|
||||||
else
|
else
|
||||||
die 'No internet connectivity detected, try again'
|
die 'No internet connectivity detected, try again'
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue