From 4211d56433f963e8c6c51bace82603aba20c4321 Mon Sep 17 00:00:00 2001 From: levasseur Date: Fri, 10 Sep 2021 18:04:33 +0200 Subject: [PATCH] upgrade_dist: backup all apt dir instead of just modified file --- modules/upgrade_dist.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/upgrade_dist.sh b/modules/upgrade_dist.sh index 0d84bca..e3b1384 100644 --- a/modules/upgrade_dist.sh +++ b/modules/upgrade_dist.sh @@ -13,12 +13,15 @@ # * PROXYAPTPORT: Working port for APT proxy # ------------------------------------------------------------------------------ -export VER_upgrade_dist="0.0.8" +export VER_upgrade_dist="0.0.9" upgrade_dist() { local proxyfile=/etc/apt/apt.conf.d/00proxy + # We backup entire apt dir as future version will normalise source.list files + backupdist /etc/apt + prnt I "Configuration du proxy pour APT..." if [[ $PROXYAPT ]]; then if [[ ! -d $(dirname $proxyfile) ]]; then @@ -27,7 +30,6 @@ upgrade_dist() die 60 ) fi - backupdist $proxyfile echo "# Generated automatically on $(stdtime) by $0" > $proxyfile echo "Acquire::http::Proxy \"http://${PROXYAPT}:${PROXYAPTPORT}\";" >> $proxyfile else