Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

fixed an issue with the docker entrypoint script.

jonaswinkler24d8a50f0174
diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh
index 4832675ab..13a0ba035 100644
--- a/docker/docker-entrypoint.sh
+++ b/docker/docker-entrypoint.sh
@@ -25,6 +25,11 @@ wait_for_postgres() {
host="${PAPERLESS_DBHOST}"
port="${PAPERLESS_DBPORT}"
+ if [[ -z $port ]] ;
+ then
+ port="5432"
+ fi
+
while !</dev/tcp/$host/$port ;
do