From ef24fccd6fb2f2c2b721d6a0e4e3bfe069bda94c 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 --- app/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/startup.sh b/app/startup.sh index c771796..69a6a90 100755 --- a/app/startup.sh +++ b/app/startup.sh @@ -62,7 +62,7 @@ done $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