[proxy] have symlinking respond to WEAVE_DEBUG not DEBUG

This commit is contained in:
Paul Bellamy committed 2015-12-01 15:51:16 +00:00
1 parent 295a2ced32
commit 6f25d2170d
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
set -e
[ -z "$DEBUG" ] || set -x
[ -z "$WEAVE_DEBUG" ] || set -x
target="$1"
user="$(stat -c '%u:%g' "$target")"
+2 -2
View File
@@ -575,8 +575,8 @@ func (proxy *Proxy) symlink(unixAddrs []string) (err error) {
"PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
}
if val := os.Getenv("DEBUG"); val != "" {
env = append(env, fmt.Sprintf("%s=%s", "DEBUG", val))
if val := os.Getenv("WEAVE_DEBUG"); val != "" {
env = append(env, fmt.Sprintf("%s=%s", "WEAVE_DEBUG", val))
}
container, err = proxy.client.CreateContainer(docker.CreateContainerOptions{