1
0
Fork 0
mirror of https://git.tt-rss.org/fox/ttrss-docker-compose synced 2025-06-09 21:29:52 +02:00
This commit is contained in:
Andrew Dolgov 2019-12-09 07:18:19 +03:00
commit 3399b10261
2 changed files with 38 additions and 8 deletions

View file

@ -1,5 +1,10 @@
#!/bin/sh -ex
while ! pg_isready -h $DB_HOST; do
echo waiting until $DB_HOST is ready...
sleep 3
done
DST_DIR=/var/www/html/tt-rss
SRC_REPO=https://git.tt-rss.org/fox/tt-rss.git
@ -33,6 +38,8 @@ for d in cache lock feed-icons; do
chmod -R 777 $DST_DIR/$d
done
$PSQL -c "create extension if not exists pg_trgm"
if ! $PSQL -c 'select * from ttrss_version'; then
$PSQL < /var/www/html/tt-rss/schema/ttrss_schema_pgsql.sql
fi