Make Debian apt settings more correctly
This commit is contained in:
@@ -5,6 +5,7 @@ THIS=$(dirname $(readlink -f $0))
|
||||
sed -i -r 's/^LIVEKITNAME.*/LIVEKITNAME="slax"/' $THIS/../../config
|
||||
sed -i -r 's/^NETWORK.*/NETWORK=true/' $THIS/../../config
|
||||
|
||||
. ./copy
|
||||
. ./install
|
||||
. ./cleanup
|
||||
. ./copy
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
APT::Install-Recommends "0";
|
||||
APT::Install-Suggests "0";
|
||||
Acquire::Languages { "none"; }
|
||||
@@ -13,28 +13,6 @@ ls() { /bin/ls $LS_OPTIONS "$@"; }
|
||||
ll() { /bin/ls $LS_OPTIONS -l "$@"; }
|
||||
l() { /bin/ls $LS_OPTIONS -lA "$@"; }
|
||||
|
||||
apt-get()
|
||||
{
|
||||
if [ -e /var/cache/apt/pkgcache.bin ]; then
|
||||
/usr/bin/apt-get --no-install-recommends "$@"
|
||||
else
|
||||
/usr/bin/apt-get update
|
||||
/usr/bin/apt-get --no-install-recommends "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
apt()
|
||||
{
|
||||
if [ -e /var/cache/apt/pkgcache.bin ]; then
|
||||
/usr/bin/apt --no-install-recommends "$@"
|
||||
else
|
||||
/usr/bin/apt update
|
||||
/usr/bin/apt --no-install-recommends "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
export -f ls
|
||||
export -f ll
|
||||
export -f l
|
||||
export -f apt-get
|
||||
export -f apt
|
||||
|
||||
Reference in New Issue
Block a user