support TTRSS_DB_PORT in container startup scripts

This commit is contained in:
Andrew Dolgov
2024-10-21 08:59:55 +03:00
parent 5ea96397c0
commit 9f0eb4d7fc
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/sh -e
while ! pg_isready -h $TTRSS_DB_HOST -U $TTRSS_DB_USER; do
while ! pg_isready -h $TTRSS_DB_HOST -U $TTRSS_DB_USER -p $TTRSS_DB_PORT; do
echo waiting until $TTRSS_DB_HOST is ready...
sleep 3
done
@@ -84,7 +84,7 @@ else
echo skipping local plugin updates, disabled.
fi
PSQL="psql -q -h $TTRSS_DB_HOST -U $TTRSS_DB_USER $TTRSS_DB_NAME"
PSQL="psql -q -h $TTRSS_DB_HOST -p $TTRSS_DB_PORT -U $TTRSS_DB_USER $TTRSS_DB_NAME"
$PSQL -c "create extension if not exists pg_trgm"