From 49598c87da255b6e9ea4548d58df63a85ec8788f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Feb 2021 14:01:07 +0300 Subject: [PATCH] expect RESTORE_SCHEMA in SCRIPT_ROOT --- src/app/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/startup.sh b/src/app/startup.sh index e835d0a..5cf42d9 100755 --- a/src/app/startup.sh +++ b/src/app/startup.sh @@ -57,7 +57,7 @@ PSQL="psql -q -h $TTRSS_DB_HOST -U $TTRSS_DB_USER $TTRSS_DB_NAME" $PSQL -c "create extension if not exists pg_trgm" -RESTORE_SCHEMA=/var/www/html/tt-rss/backups/restore-schema.sql.gz +RESTORE_SCHEMA=${SCRIPT_ROOT}/restore-schema.sql.gz if [ -r $RESTORE_SCHEMA ]; then zcat $RESTORE_SCHEMA | $PSQL