From a02cb3b3bdc60eb459c5f3a6fb0bf5c7f9d622ad Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 24 Sep 2025 15:17:14 +0200 Subject: [PATCH] prepare for rework, in near future, typo --- modules/upgrade_dist.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/upgrade_dist.sh b/modules/upgrade_dist.sh index e5ae058..92f9528 100644 --- a/modules/upgrade_dist.sh +++ b/modules/upgrade_dist.sh @@ -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