From b2b0a5c5dbc143c02a3fa50577196e3d7f44d42e Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Sat, 10 Jun 2023 01:00:09 +0900 Subject: [PATCH] Update alpineInit.sh --- Linux_reinstall/Alpine/alpineInit.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Linux_reinstall/Alpine/alpineInit.sh b/Linux_reinstall/Alpine/alpineInit.sh index 8c3e1bb..5dc363b 100644 --- a/Linux_reinstall/Alpine/alpineInit.sh +++ b/Linux_reinstall/Alpine/alpineInit.sh @@ -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