From 58d47d2e19d640952777e62dade1f45b3c53564e Mon Sep 17 00:00:00 2001 From: Molly Lau Date: Fri, 9 Jun 2023 23:09:03 +0900 Subject: [PATCH] Update alpineInit.sh --- Linux_reinstall/Alpine/alpineInit.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Linux_reinstall/Alpine/alpineInit.sh b/Linux_reinstall/Alpine/alpineInit.sh index 47f8cc7..5a47572 100644 --- a/Linux_reinstall/Alpine/alpineInit.sh +++ b/Linux_reinstall/Alpine/alpineInit.sh @@ -4,13 +4,6 @@ exec >/dev/tty0 2>&1 -addRepo() { - rm -rf /etc/apk/repositories - echo $LinuxMirror/$alpineVer/main >> /etc/apk/repositories - echo $LinuxMirror/$alpineVer/community >> /etc/apk/repositories - echo $LinuxMirror/edge/testing >> /etc/apk/repositories -} - # Delete the initial script itself to prevent to be executed in the new system. rm -f /etc/local.d/alpineConf.start rm -f /etc/runlevels/default/local @@ -44,7 +37,10 @@ crond | default seedrng | boot # Config and add community and testing repository -addRepo +rm -rf /etc/apk/repositories +echo $LinuxMirror/$alpineVer/main >> /etc/apk/repositories +echo $LinuxMirror/$alpineVer/community >> /etc/apk/repositories +echo $LinuxMirror/edge/testing >> /etc/apk/repositories # Reset configurations of repositories true >/etc/apk/repositories