Ver Fonte

Healthcheck correction

Vadim Surkov há 6 anos atrás
pai
commit
0e8e2d4d26
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      healthcheck.sh

+ 2 - 2
healthcheck.sh

@@ -2,8 +2,8 @@
 
 containerstart=`stat -c %Z /proc/1`
 curtime=`date +%s`
-if [[ $(($containerstart-$curtime)) -le "180" ]]; then
-    echo "0"
+if (( curtime-containerstart < 180 )); then
+    echo "Container start period, returning 0"
     exit 0
 fi