mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-16 06:05:33 +08:00
Update InstallNET.sh
This commit is contained in:
parent
c3b3427006
commit
b28b51e535
1 changed files with 3 additions and 3 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue