expect RESTORE_SCHEMA in SCRIPT_ROOT

pull/5/head
Andrew Dolgov 4 years ago
parent 4342387078
commit 49598c87da

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

Loading…
Cancel
Save