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 #
|
# T-Pot Community Edition #
|
||||||
# Check container and services script #
|
# 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 ];
|
if [ -a /var/run/check.lock ];
|
||||||
then exit
|
then exit
|
||||||
|
@ -17,7 +17,7 @@ touch /var/run/check.lock
|
||||||
myUPTIME=$(awk '{print int($1/60)}' /proc/uptime)
|
myUPTIME=$(awk '{print int($1/60)}' /proc/uptime)
|
||||||
for i in $myIMAGES
|
for i in $myIMAGES
|
||||||
do
|
do
|
||||||
myCIDSTATUS=$(docker exec -i $i supervisorctl status)
|
myCIDSTATUS=$(docker exec $i supervisorctl status)
|
||||||
if [ $? -ne 0 ];
|
if [ $? -ne 0 ];
|
||||||
then
|
then
|
||||||
myCIDSTATUS=1
|
myCIDSTATUS=1
|
||||||
|
@ -59,4 +59,3 @@ for i in $myIMAGES
|
||||||
done
|
done
|
||||||
|
|
||||||
rm /var/run/check.lock
|
rm /var/run/check.lock
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue