mirror of
https://gh.llkk.cc/https://github.com/WeblateOrg/scripts.git
synced 2025-10-03 15:01:00 +08:00
Fixed wait for docker startup
This commit is contained in:
parent
10c4305364
commit
b0742ae86f
1 changed files with 7 additions and 1 deletions
|
@ -93,7 +93,13 @@ EOT
|
|||
chown -R weblate:weblate $WEBLATE_HOME
|
||||
|
||||
# Start Weblate
|
||||
sudo -u weblate -D $WEBLATE_DOCKER docker-compose up -d --wait
|
||||
sudo -u weblate -D $WEBLATE_DOCKER docker-compose up -d
|
||||
|
||||
# Wait for startup
|
||||
while [ "$(sudo -u weblate -D $WEBLATE_DOCKER docker-compose ps --services --filter state=unhealthy)" = "" ] ; do sleep 1; echo sleep 1; done;
|
||||
|
||||
# Show logs
|
||||
sudo -u weblate -D $WEBLATE_DOCKER docker-compose logs
|
||||
|
||||
# Check
|
||||
sudo -u weblate -D $WEBLATE_DOCKER docker-compose exec --user weblate weblate weblate check --deploy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue