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

@@ -7,7 +7,7 @@
bashio::require.unprotected
# Wait for transmission to become available
bashio::net.wait_for 9001 localhost 900
bashio::net.wait_for 9001 localhost 50
# Launch app
cd /app || true

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