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
191678f3ab
commit
b01b80ee1c
1 changed files with 2 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
|||
# T-Pot Community Edition #
|
||||
# Check container and services script #
|
||||
# #
|
||||
# v0.12 by mo, DTAG, 2015-01-29 #
|
||||
# v0.13 by mo, DTAG, 2015-06-12 #
|
||||
########################################################
|
||||
if [ -a /var/run/check.lock ];
|
||||
then exit
|
||||
|
@ -17,7 +17,7 @@ touch /var/run/check.lock
|
|||
myUPTIME=$(awk '{print int($1/60)}' /proc/uptime)
|
||||
for i in $myIMAGES
|
||||
do
|
||||
myCIDSTATUS=$(docker exec -i $i supervisorctl status)
|
||||
myCIDSTATUS=$(docker exec $i supervisorctl status)
|
||||
if [ $? -ne 0 ];
|
||||
then
|
||||
myCIDSTATUS=1
|
||||
|
@ -59,4 +59,3 @@ for i in $myIMAGES
|
|||
done
|
||||
|
||||
rm /var/run/check.lock
|
||||
|
||||
|
|
Loading…
Reference in a new issue