aheil / docker-ttrss

Complete Docker solution to host your own Tiny Tiny RSS (ttrss) instance using Docker.
MIT License
9 stars 1 forks source link

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

Open jcalfee opened 5 years ago

jcalfee commented 5 years ago

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 commented 5 years ago

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
}