Skip to content

Commit dc0e745

Browse files
authored
fix: rate-mirrors is not supposed to be run as root
1 parent f7fd2ee commit dc0e745

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN pacman -Syy --noconfirm && \
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 -
2525
RUN export TMPFILE="$(mktemp)"; \
2626
sudo true; \
27-
rate-mirrors --save=$TMPFILE arch --max-delay=43200 \
27+
sudo -u nobody rate-mirrors --save=$TMPFILE arch --max-delay=43200 \
2828
&& sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup \
2929
&& sudo mv $TMPFILE /etc/pacman.d/mirrorlist
3030

0 commit comments

Comments
 (0)