create pg_trgm if needed

This commit is contained in:
Andrew Dolgov 2019-11-16 13:33:58 +03:00
parent 0deb1d6736
commit 818725f4fb
1 changed files with 2 additions and 0 deletions

View File

@ -29,6 +29,8 @@ for d in cache lock feed-icons; do
chmod -R 777 $DST_DIR/$d chmod -R 777 $DST_DIR/$d
done done
$PSQL -c "create extension if not exists pg_trgm"
if ! $PSQL -c 'select * from ttrss_version'; then if ! $PSQL -c 'select * from ttrss_version'; then
$PSQL < /var/www/html/tt-rss/schema/ttrss_schema_pgsql.sql $PSQL < /var/www/html/tt-rss/schema/ttrss_schema_pgsql.sql
fi fi