Compare commits
3 Commits
81d7f68a19
...
ee28727313
| Author | SHA1 | Date | |
|---|---|---|---|
| ee28727313 | |||
| dfb05f40fd | |||
| c258e698ab |
2
init.sh
2
init.sh
@@ -36,7 +36,7 @@ export LC_ALL=C
|
|||||||
export LANG=C
|
export LANG=C
|
||||||
|
|
||||||
# Version of init
|
# Version of init
|
||||||
export VERSION="0.99.21"
|
export VERSION="0.99.22"
|
||||||
|
|
||||||
# Store script's path (realpath -s resolve symlinks if init.sh is a symlink)
|
# Store script's path (realpath -s resolve symlinks if init.sh is a symlink)
|
||||||
export MYPATH=$(dirname "$(realpath -s "$0")")
|
export MYPATH=$(dirname "$(realpath -s "$0")")
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ read_commandline()
|
|||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
"-f"|"--file")
|
"-f"|"--file")
|
||||||
export CONFFILES="$CONFFILES $opt"
|
export CONFFILES="$CONFFILES $2"
|
||||||
shift 2
|
shift 2
|
||||||
;;
|
;;
|
||||||
"-s"|"--shell")
|
"-s"|"--shell")
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
# * PROXY_SRV_PORT: Working port for general purpose proxy if one declared
|
# * PROXY_SRV_PORT: Working port for general purpose proxy if one declared
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
export VER_upgrade_dist="0.2.3"
|
export VER_upgrade_dist="0.2.4"
|
||||||
|
|
||||||
# As aptitude might fail if clock is too far from real time, we need to depend
|
# As aptitude might fail if clock is too far from real time, we need to depend
|
||||||
# on ntp
|
# on ntp
|
||||||
@@ -43,6 +43,14 @@ upgrade_dist()
|
|||||||
prnt E "Impossible to create directory to receive APT configuration."
|
prnt E "Impossible to create directory to receive APT configuration."
|
||||||
die 60
|
die 60
|
||||||
)
|
)
|
||||||
|
else
|
||||||
|
# Cleanup
|
||||||
|
if [[ -s $proxyfile ]]; then
|
||||||
|
emptyflie $proxyfile
|
||||||
|
fi
|
||||||
|
if [[ $(grep "^Acquire::http::Proxy" /etc/apt/apt.conf) ]]; then
|
||||||
|
sed -i -e "/^Acquire::http::Proxy/d" /etc/apt/apt.conf
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
tag_file $proxyfile
|
tag_file $proxyfile
|
||||||
echo "Acquire::http::Proxy \"http://${PROXY_APT}:${PROXY_APT_PORT}\";" >> $proxyfile
|
echo "Acquire::http::Proxy \"http://${PROXY_APT}:${PROXY_APT_PORT}\";" >> $proxyfile
|
||||||
|
|||||||
Reference in New Issue
Block a user