expect RESTORE_SCHEMA in SCRIPT_ROOT

This commit is contained in:
Andrew Dolgov 2021-02-02 14:01:07 +03:00
parent 7529767f49
commit ef24fccd6f
1 changed files with 1 additions and 1 deletions

View File

@ -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