aheil / aheil/docker-ttrss

Race condition at first time startup

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug help wanted
Lingua principale
Shell
Stelle
9
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When containers are started the first time, there might occure a dace condition while the database is not yet fully set up. database_ready seams not to return a vaild integer value then.

```
ttrss_php_1 | Initializing config.php
ttrss_php_1 | /docker-entrypoint.sh: line 49: [: database_ready: integer expression expected
```
Proposed fix: within the function check the value for 1, otherwise return 0 instead of returning the variable

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.