prepare for rework, in near future, typo
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
# * PROXY_APT_PORT: Working port for APT proxy if one declared
|
||||
# * PROXY_SRV: General purpose proxy if PROXY_APT is undefined
|
||||
# * PROXY_SRV_PORT: Working port for general purpose proxy if one declared
|
||||
# TODO: Split apt conf and actuel update to avoid repeating configuration if
|
||||
# for a reason apt fail
|
||||
# TODO: This is Debian only, make this universal (at least yum/dnf compatible)
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
export VER_upgrade_dist="0.2.5"
|
||||
@@ -29,6 +32,8 @@ upgrade_dist()
|
||||
# We backup entire apt dir
|
||||
backup_dist /etc/apt
|
||||
prnt I "Basic apt configuration..."
|
||||
|
||||
# TODO: No recommend section should be optionnal
|
||||
tag_file $norecommends
|
||||
{
|
||||
echo 'APT::Install-Recommends "false";'
|
||||
@@ -46,7 +51,7 @@ upgrade_dist()
|
||||
else
|
||||
# Cleanup
|
||||
if [[ -s $proxyfile ]]; then
|
||||
emptyfile $proxyfile
|
||||
true > "$proxyfile"
|
||||
fi
|
||||
if grep -q "^Acquire::http::Proxy" /etc/apt/apt.conf; then
|
||||
sed -i -e "/^Acquire::http::Proxy/d" /etc/apt/apt.conf
|
||||
|
||||
Reference in New Issue
Block a user