This commit is contained in:
Alexandre
2023-05-21 11:28:35 +02:00
parent c32eb55eb7
commit 07a2c697ea
3 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bashio
START_TIME=`date +%s`
START_TIME="$(date +%s)"
echo "Waiting for first healthcheck execution (max $FIRST_HEALTHCHECK_TIMEOUT seconds)..."
@@ -8,7 +8,7 @@ while [ ! -f "/tmp/healthcheck-signal" ];
do
sleep 1
ELAPSED_TIME=`expr \`date +%s\` - $START_TIME`
ELAPSED_TIME="$(expr \date +%s\ - $START_TIME)"
if [ $ELAPSED_TIME -gt $FIRST_HEALTHCHECK_TIMEOUT ]
then