Browse Source

fix: change wait condition and clean output

master
bucde 3 years ago
parent
commit
6393fb5d54
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      setup

+ 3
- 3
setup View File

@ -69,7 +69,7 @@ docker-compose up -d
echo -n "Wait until container is running ..." echo -n "Wait until container is running ..."
while [ "`docker inspect -f {{.State.Running}} $KIMAI_CONTAINER_NAME`" != "true" ]; do
while [ "`docker inspect -f {{.State.Health.Status}} $KIMAI_CONTAINER_NAME`" != "healthy" ]; do
echo -n "." echo -n "."
sleep 1 sleep 1
done done
@ -85,7 +85,7 @@ echo " user:" >> tmp
echo " registration: false" >> tmp echo " registration: false" >> tmp
echo " password_reset: false" >> tmp echo " password_reset: false" >> tmp
docker exec -i $KIMAI_CONTAINER_NAME dd of=/opt/kimai/config/packages/local.yaml < tmp
docker exec -i $KIMAI_CONTAINER_NAME dd of=/opt/kimai/config/packages/local.yaml < tmp >> /dev/null
rm -f tmp rm -f tmp
@ -93,7 +93,7 @@ docker restart -t 0 $KIMAI_CONTAINER_NAME >> /dev/null
echo -n "Wait until container is running ..." echo -n "Wait until container is running ..."
while [ "`docker inspect -f {{.State.Running}} $KIMAI_CONTAINER_NAME`" != "true" ]; do
while [ "`docker inspect -f {{.State.Health.Status}} $KIMAI_CONTAINER_NAME`" != "healthy" ]; do
echo -n "." echo -n "."
sleep 1 sleep 1
done done


Loading…
Cancel
Save