Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-entrypoint.sh: line 47 integer expression expected #11

Open
jcalfee opened this issue Aug 7, 2019 · 1 comment
Open

docker-entrypoint.sh: line 47 integer expression expected #11

jcalfee opened this issue Aug 7, 2019 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jcalfee
Copy link

jcalfee commented Aug 7, 2019

Just pulled from master, this error showed up during docker-compose up and localhost:8080 just hangs:

ttrss_php_1  | Initializing config.php
ttrss_php_1  | /docker-entrypoint.sh: line 47: [: database_ready: integer expression expected
@jcalfee
Copy link
Author

jcalfee commented Aug 7, 2019

That is the database_ready function. It must be returning an empty value.

 database_ready() {
   return_value=$(psql "dbname='$DB_NAME' user='$DB_USER' password='$DB_PASS' host='$DB_HOST' port='$DB_PORT'" -t -c "SELECT CASE WHEN EXISTS (SELECT 1 FR    OM pg_roles WHERE rolname='$DB_USER') THEN 1 ELSE 0 END;" 2>/dev/null)
   return $return_value
}

@aheil aheil self-assigned this Aug 7, 2019
@aheil aheil added the bug Something isn't working label Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants