Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-09-08 23:34:19 +09:00 committed by GitHub
parent c3b3427006
commit b28b51e535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1047,6 +1047,9 @@ function checkVirt() {
}
function checkSys() {
# Fix debian security sources 404 not found (only of default sources)
sed -i 's/^\(deb.*security.debian.org\/\)\(.*\)\/updates/\1debian-security\2-security/g' /etc/apt/sources.list
CurrentOSVer=`cat /etc/os-release | grep -w "VERSION_ID=*" | awk -F '=' '{print $2}' | sed 's/\"//g' | cut -d'.' -f 1`
apt update -y
@ -2572,9 +2575,6 @@ verifyUrlValidationOfDdImages() {
fi
}
# Fix debian security sources 404 not found (only of default sources)
sed -i 's/^\(deb.*security.debian.org\/\)\(.*\)\/updates/\1debian-security\2-security/g' /etc/apt/sources.list
checkSys
# Get the name of network adapter($interface).