[base image files] All 'docker exec' wrapper scripts now dynamically adjust their flags depending on whether or not they are run on a terminal (#1507)
This commit is contained in:
parent
066137e9d8
commit
e1cb2ace36
@ -1,3 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker exec -it database redis-cli "$@"
|
||||
DOCKER_EXEC_FLAGS="i"
|
||||
|
||||
# Determine whether stdout is on a terminal
|
||||
if [ -t 1 ] ; then
|
||||
DOCKER_EXEC_FLAGS+="t"
|
||||
fi
|
||||
|
||||
docker exec -$DOCKER_EXEC_FLAGS database redis-cli "$@"
|
||||
|
@ -1,2 +1,10 @@
|
||||
#!/bin/bash
|
||||
docker exec -it bgp vtysh "$@"
|
||||
|
||||
DOCKER_EXEC_FLAGS="i"
|
||||
|
||||
# Determine whether stdout is on a terminal
|
||||
if [ -t 1 ] ; then
|
||||
DOCKER_EXEC_FLAGS+="t"
|
||||
fi
|
||||
|
||||
docker exec -$DOCKER_EXEC_FLAGS bgp vtysh "$@"
|
||||
|
@ -1,2 +1,10 @@
|
||||
#!/bin/bash
|
||||
docker exec -it bgp vtysh "$@"
|
||||
|
||||
DOCKER_EXEC_FLAGS="i"
|
||||
|
||||
# Determine whether stdout is on a terminal
|
||||
if [ -t 1 ] ; then
|
||||
DOCKER_EXEC_FLAGS+="t"
|
||||
fi
|
||||
|
||||
docker exec -$DOCKER_EXEC_FLAGS bgp vtysh "$@"
|
||||
|
@ -1,2 +1,10 @@
|
||||
#!/bin/bash
|
||||
docker exec -i lldp lldpctl "$@"
|
||||
|
||||
DOCKER_EXEC_FLAGS="i"
|
||||
|
||||
# Determine whether stdout is on a terminal
|
||||
if [ -t 1 ] ; then
|
||||
DOCKER_EXEC_FLAGS+="t"
|
||||
fi
|
||||
|
||||
docker exec -$DOCKER_EXEC_FLAGS lldp lldpctl "$@"
|
||||
|
@ -1,2 +1,10 @@
|
||||
#!/bin/bash
|
||||
docker exec -i swss swssloglevel "$@"
|
||||
|
||||
DOCKER_EXEC_FLAGS="i"
|
||||
|
||||
# Determine whether stdout is on a terminal
|
||||
if [ -t 1 ] ; then
|
||||
DOCKER_EXEC_FLAGS+="t"
|
||||
fi
|
||||
|
||||
docker exec -$DOCKER_EXEC_FLAGS swss swssloglevel "$@"
|
||||
|
@ -1,2 +1,10 @@
|
||||
#!/bin/bash
|
||||
docker exec -i pmon sensors "$@"
|
||||
|
||||
DOCKER_EXEC_FLAGS="i"
|
||||
|
||||
# Determine whether stdout is on a terminal
|
||||
if [ -t 1 ] ; then
|
||||
DOCKER_EXEC_FLAGS+="t"
|
||||
fi
|
||||
|
||||
docker exec -$DOCKER_EXEC_FLAGS pmon sensors "$@"
|
||||
|
@ -1,3 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker exec -i teamd teamdctl "$@"
|
||||
DOCKER_EXEC_FLAGS="i"
|
||||
|
||||
# Determine whether stdout is on a terminal
|
||||
if [ -t 1 ] ; then
|
||||
DOCKER_EXEC_FLAGS+="t"
|
||||
fi
|
||||
|
||||
docker exec -$DOCKER_EXEC_FLAGS teamd teamdctl "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user