Pārlūkot izejas kodu

Healthcheck correction

Vadim Surkov 6 gadi atpakaļ
vecāks
revīzija
cb52d26d27
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      mongo-healthcheck.sh

+ 2 - 2
mongo-healthcheck.sh

@@ -1,8 +1,8 @@
 #!/bin/bash
 
-mongostart=`stat -c %Z /proc/1`
+containerstart=`stat -c %Z /proc/1`
 curtime=`date +%s`
-if [[ $(($mongostart-$curtime)) -le "180" ]]; then
+if (( curtime-containerstart < 180 )); then
     echo "0"
     exit 0
 fi