mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2024-11-23 23:10:58 +07:00
fix: Add package (#546)
This commit is contained in:
parent
944faaa927
commit
53605bd6e8
@ -130,17 +130,14 @@ addPackage() {
|
|||||||
|
|
||||||
info "Installing $desc..."
|
info "Installing $desc..."
|
||||||
|
|
||||||
export DEBCONF_NOWARNINGS="yes"
|
|
||||||
export DEBIAN_FRONTEND="noninteractive"
|
|
||||||
|
|
||||||
[ -z "$COUNTRY" ] && setCountry
|
[ -z "$COUNTRY" ] && setCountry
|
||||||
|
|
||||||
if [[ "${COUNTRY^^}" == "CN" ]]; then
|
if [[ "${COUNTRY^^}" == "CN" ]]; then
|
||||||
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources
|
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources
|
||||||
fi
|
fi
|
||||||
|
|
||||||
apt-get -qq update
|
DEBIAN_FRONTEND=noninteractive apt-get -qq update
|
||||||
apt-get -qq --no-install-recommends -y install "$pkg" > /dev/null
|
DEBIAN_FRONTEND=noninteractive apt-get -qq --no-install-recommends -y install "$pkg" > /dev/null
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user