From c20d55097c736db8881db8702ed89501020c2b5a Mon Sep 17 00:00:00 2001 From: Ward Vandewege Date: Sat, 10 Oct 2020 08:56:02 -0400 Subject: [PATCH 1/1] 16922: disable the postgres pager in the rails postinst script. Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- build/rails-package-scripts/postinst.sh | 2 ++ 1 file changed, 2 insertions(+) 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 ;; -- 2.30.2