From 818725f4fb48fd907d0aacee080f59717983f194 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 16 Nov 2019 13:33:58 +0300 Subject: [PATCH] create pg_trgm if needed --- app/startup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/startup.sh b/app/startup.sh index 173e2df..4eba7df 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -29,6 +29,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