Parcourir la source

Healthcheck correction

Vadim Surkov il y a 6 ans
Parent
commit
0e8e2d4d26
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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