[proxy] have symlinking respond to WEAVE_DEBUG not DEBUG
This commit is contained in:
1 parent
295a2ced32
commit
6f25d2170d
2 files changed
+3
-3
No files matched your search
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
[ -z "$DEBUG" ] || set -x
|
[ -z "$WEAVE_DEBUG" ] || set -x
|
||||||
|
|
||||||
target="$1"
|
target="$1"
|
||||||
user="$(stat -c '%u:%g' "$target")"
|
user="$(stat -c '%u:%g' "$target")"
|
||||||
|
|||||||
+2
-2
@@ -575,8 +575,8 @@ func (proxy *Proxy) symlink(unixAddrs []string) (err error) {
|
|||||||
"PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
"PATH=/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
|
||||||
}
|
}
|
||||||
|
|
||||||
if val := os.Getenv("DEBUG"); val != "" {
|
if val := os.Getenv("WEAVE_DEBUG"); val != "" {
|
||||||
env = append(env, fmt.Sprintf("%s=%s", "DEBUG", val))
|
env = append(env, fmt.Sprintf("%s=%s", "WEAVE_DEBUG", val))
|
||||||
}
|
}
|
||||||
|
|
||||||
container, err = proxy.client.CreateContainer(docker.CreateContainerOptions{
|
container, err = proxy.client.CreateContainer(docker.CreateContainerOptions{
|
||||||
|
|||||||
Reference in new issue
Block a user