upgrade_dist: backup all apt dir instead of just modified file
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user