File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ RUN pacman -Syy --noconfirm && \
2222 pacman -S rate-mirrors python-vdf python-inputs python-steam --noconfirm
2323
2424# RUN curl -s "https://archlinux.org/mirrorlist/?country=IN&country=US&country=DE&country=GB&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 -
25- RUN export TMPFILE="$(mktemp)" ; \
26- sudo true; \
27- sudo -u nobody rate-mirrors --save=$TMPFILE arch --max-delay=43200 \
28- && sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup \
29- && sudo mv $TMPFILE /etc/pacman.d/mirrorlist
25+ RUN export TMPFILE="/tmp/ratemir" && \
26+ sudo touch "$TMPFILE" && \
27+ sudo rate-mirrors --save=" $TMPFILE" --allow-root arch --completion=1 -- max-delay=43200 && \
28+ sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup && \
29+ sudo mv $TMPFILE /etc/pacman.d/mirrorlist
3030
3131# Add third-party keys
3232RUN pacman-key --keyserver hkps://keyserver.ubuntu.com --recv-keys \
You can’t perform that action at this time.
0 commit comments