mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-15 13:44:50 +08:00
Update alpineInit.sh
This commit is contained in:
parent
a2691af026
commit
b2b0a5c5db
1 changed files with 2 additions and 4 deletions
|
@ -42,13 +42,11 @@ echo $LinuxMirror/$alpineVer/community >>/etc/apk/repositories
|
|||
|
||||
# Reset configurations of repositories
|
||||
true >/etc/apk/repositories
|
||||
setup-apkrepos -f
|
||||
setup-apkrepos $LinuxMirror/$alpineVer/main
|
||||
setup-apkcache /var/cache/apk
|
||||
|
||||
# Delete comment in the repositories
|
||||
sed -i 's/#//' /etc/apk/repositories
|
||||
|
||||
# Add edge testing to the repositories
|
||||
sed -i '$a\'$LinuxMirror'/'$alpineVer'/community' /etc/apk/repositories
|
||||
sed -i '$a\'$LinuxMirror'/edge/testing' /etc/apk/repositories
|
||||
|
||||
# Synchronize time from hardware
|
||||
|
|
Loading…
Reference in a new issue