Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unified Alpine's mirror #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pvetools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2681,7 +2681,7 @@ EOF
else
#alpineUrl='https://mirrors.aliyun.com/alpine/v3.10/releases/x86_64'
#change url
alpineUrl='https://mirrors.ustc.edu.cn/alpine/v3.10/releases/x86_64/'
alpineUrl='https://mirrors.ustc.edu.cn/alpine/latest-stable/releases/x86_64/'
fi
version=`wget $alpineUrl/ -q -O -|grep minirootfs|grep -o '[0-9]*\.[0-9]*\.[0-9]*'|sort -u -r|awk 'NR==1{print $1}'`
echo $alpineUrl
Expand All @@ -2703,8 +2703,8 @@ type=directory
shell=/bin/sh
EOF
fi
echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > $chrootp/etc/apk/repositories \
&& echo "http://mirrors.aliyun.com/alpine/latest-stable/community/" >> $chrootp/etc/apk/repositories
echo "http://mirrors.ustc.edu.cn/alpine/latest-stable/main/" > $chrootp/etc/apk/repositories \
&& echo "http://mirrors.ustc.edu.cn/alpine/latest-stable/community/" >> $chrootp/etc/apk/repositories
cat << EOF >> $chrootp/etc/profile
echo "Welcome to alpine $version chroot."
echo "Create by PveTools."
Expand Down