From: Ward Vandewege Date: Sat, 10 Oct 2020 12:56:02 +0000 (-0400) Subject: 16922: disable the postgres pager in the rails postinst script. X-Git-Tag: 2.1.1~26^2~1 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/c20d55097c736db8881db8702ed89501020c2b5a?hp=7ce1e5122b6e913d90010254009c3c9efc5e1f60 16922: disable the postgres pager in the rails postinst script. Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- diff --git a/build/rails-package-scripts/postinst.sh b/build/rails-package-scripts/postinst.sh index 7ea21848b2..357c100643 100644 --- a/build/rails-package-scripts/postinst.sh +++ b/build/rails-package-scripts/postinst.sh @@ -212,6 +212,8 @@ configure_version() { chown "$WWW_OWNER:" $RELEASE_PATH/Gemfile.lock chown -R "$WWW_OWNER:" $RELEASE_PATH/tmp || true chown -R "$WWW_OWNER:" $SHARED_PATH/log + # Make sure postgres doesn't try to use a pager. + export PAGER= case "$RAILSPKG_DATABASE_LOAD_TASK" in db:schema:load) chown "$WWW_OWNER:" $RELEASE_PATH/db/schema.rb ;; db:structure:load) chown "$WWW_OWNER:" $RELEASE_PATH/db/structure.sql ;;