Merge branch '1.3'
This commit is contained in:
commit
827a7c1cf1
1 file changed
+7
-7
@@ -1142,7 +1142,7 @@ rewrite_etc_hosts() {
|
|||||||
CONTAINERS_PATH=$(dirname $HOSTS)
|
CONTAINERS_PATH=$(dirname $HOSTS)
|
||||||
MNT=/container
|
MNT=/container
|
||||||
MNT_HOSTS=$MNT/$(basename $HOSTS)
|
MNT_HOSTS=$MNT/$(basename $HOSTS)
|
||||||
CONTENTS="$(etc_hosts_contents $FQDN $@)"
|
CONTENTS="$(etc_hosts_contents $FQDN "$@")"
|
||||||
# rewrite /etc/hosts, unlinking the file (so Docker does not modify it again) but
|
# rewrite /etc/hosts, unlinking the file (so Docker does not modify it again) but
|
||||||
# leaving it with valid contents...
|
# leaving it with valid contents...
|
||||||
docker run --rm --net=none --privileged \
|
docker run --rm --net=none --privileged \
|
||||||
@@ -1736,14 +1736,14 @@ deprecation_warnings() {
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
-password|-password=*)
|
-password|-password=*)
|
||||||
deprecation_warning $1 "--password"
|
deprecation_warning $1 "--password"
|
||||||
[ "$1" == "-password" ] && shift
|
[ "$1" = "-password" ] && shift
|
||||||
;;
|
;;
|
||||||
--password)
|
--password)
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-nickname|-nickname=*)
|
-nickname|-nickname=*)
|
||||||
deprecation_warning $1 "--nickname"
|
deprecation_warning $1 "--nickname"
|
||||||
[ "$1" == "-nickname" ] && shift
|
[ "$1" = "-nickname" ] && shift
|
||||||
;;
|
;;
|
||||||
--nickname)
|
--nickname)
|
||||||
shift
|
shift
|
||||||
@@ -1753,21 +1753,21 @@ deprecation_warnings() {
|
|||||||
;;
|
;;
|
||||||
-iprange|--iprange|-iprange=*|--iprange=*)
|
-iprange|--iprange|-iprange=*|--iprange=*)
|
||||||
deprecation_warning $1 "--ipalloc-range"
|
deprecation_warning $1 "--ipalloc-range"
|
||||||
[ ${1#--} == "iprange" ] && shift
|
[ ${1#--} = "iprange" ] && shift
|
||||||
;;
|
;;
|
||||||
--ipalloc-range)
|
--ipalloc-range)
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-ipsubnet|--ipsubnet|-ipsubnet=*|--ipsubnet=*)
|
-ipsubnet|--ipsubnet|-ipsubnet=*|--ipsubnet=*)
|
||||||
deprecation_warning $1 "--ipalloc-default-subnet"
|
deprecation_warning $1 "--ipalloc-default-subnet"
|
||||||
[ ${1#--} == "ipsubnet" ] && shift
|
[ ${1#--} = "ipsubnet" ] && shift
|
||||||
;;
|
;;
|
||||||
--ipalloc-default-subnet)
|
--ipalloc-default-subnet)
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
-initpeercount|--initpeercount|-initpeercount=*|--initpeercount=*)
|
-initpeercount|--initpeercount|-initpeercount=*|--initpeercount=*)
|
||||||
deprecation_warning $1 "--init-peer-count"
|
deprecation_warning $1 "--init-peer-count"
|
||||||
[ ${1#--} == "initpeercount" ] && shift
|
[ ${1#--} = "initpeercount" ] && shift
|
||||||
;;
|
;;
|
||||||
--init-peer-count)
|
--init-peer-count)
|
||||||
shift
|
shift
|
||||||
@@ -1860,7 +1860,7 @@ EOF
|
|||||||
;;
|
;;
|
||||||
connect)
|
connect)
|
||||||
[ $# -gt 0 ] || usage
|
[ $# -gt 0 ] || usage
|
||||||
if [ "$1" == "--replace" ] ; then
|
if [ "$1" = "--replace" ] ; then
|
||||||
replace="-d replace=true"
|
replace="-d replace=true"
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user