added no proxy command line option
This commit is contained in:
2
init.sh
2
init.sh
@@ -106,7 +106,7 @@ load_configuration
|
|||||||
process_commandline_and_vars
|
process_commandline_and_vars
|
||||||
|
|
||||||
# Declare proxy system vars if needed and if not already declared
|
# Declare proxy system vars if needed and if not already declared
|
||||||
if [[ -n $PROXYSRV && -n $PROXYSRVPORT ]]; then
|
if [[ -n $PROXYSRV && -n $PROXYSRVPORT && -z $NO_PROXY ]]; then
|
||||||
export http_proxy=${http_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
|
export http_proxy=${http_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
|
||||||
export https_proxy=${https_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
|
export https_proxy=${https_proxy:-"http://$PROXYSRV:$PROXYSRVPORT/"}
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ Options :
|
|||||||
-k, --keep-going Continue l'execution en cas d'erreur.
|
-k, --keep-going Continue l'execution en cas d'erreur.
|
||||||
-r, --resume Reprend l'execution là ou elle s'est arrêté.
|
-r, --resume Reprend l'execution là ou elle s'est arrêté.
|
||||||
-R, --no-root-check Ne pas vérifier les droits root (ou UID 0)
|
-R, --no-root-check Ne pas vérifier les droits root (ou UID 0)
|
||||||
|
-P, --no-proxy Ne pas utiliser de proxy lors de l'utilisation de
|
||||||
|
ce script (n'empêche pas leur configuration via modules)
|
||||||
-h, --help Affiche ce texte d'aide.
|
-h, --help Affiche ce texte d'aide.
|
||||||
-l, --logfile <nom> Nom du fichier de log. Peut aussi être changé
|
-l, --logfile <nom> Nom du fichier de log. Peut aussi être changé
|
||||||
via la variable d'environnement LOGFILE.
|
via la variable d'environnement LOGFILE.
|
||||||
|
|||||||
@@ -59,6 +59,9 @@ read_commandline()
|
|||||||
"-R"|"--no-root-check")
|
"-R"|"--no-root-check")
|
||||||
export NO_ROOT_CHECK=true
|
export NO_ROOT_CHECK=true
|
||||||
;;
|
;;
|
||||||
|
"-P"|"--no-proxy")
|
||||||
|
export NO_PROXY=true
|
||||||
|
;;
|
||||||
"-l"|"--logfile")
|
"-l"|"--logfile")
|
||||||
local want_logfile=true
|
local want_logfile=true
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user