mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-28 19:28:50 +00:00
remove stdin option from docker exec
This commit is contained in:
parent
537f0c39e6
commit
191678f3ab
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
# T-Pot Community Edition #
|
||||
# Container and services status script #
|
||||
# #
|
||||
# v0.10 by mo, DTAG, 2015-01-27 #
|
||||
# v0.11 by mo, DTAG, 2015-06-12 #
|
||||
########################################################
|
||||
myCOUNT=1
|
||||
myIMAGES=$(cat /data/images.conf)
|
||||
|
@ -34,7 +34,8 @@ echo
|
|||
echo
|
||||
for i in $myIMAGES
|
||||
do
|
||||
echo
|
||||
echo "======| Container:" $i "|======"
|
||||
docker exec -i $i supervisorctl status | GREP_COLORS='mt=01;32' egrep --color=always "(RUNNING)|$" | GREP_COLORS='mt=01;31' egrep --color=always "(STOPPED|FATAL)|$"
|
||||
docker exec $i supervisorctl status | GREP_COLORS='mt=01;32' egrep --color=always "(RUNNING)|$" | GREP_COLORS='mt=01;31' egrep --color=always "(STOPPED|FATAL)|$"
|
||||
echo
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue