Update alpineInit.sh

This commit is contained in:
Molly Lau 2023-06-09 23:09:03 +09:00 committed by GitHub
parent ca03dfe0d5
commit 58d47d2e19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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