aheil / aheil/docker-ttrss

Race condition at first time startup

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
Shell
Stars
9
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.