Vadim Surkov 6 жил өмнө
parent
commit
0e8e2d4d26
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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