projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ce1e51
)
16922: disable the postgres pager in the rails postinst script.
author
Ward Vandewege <ward@curii.com>
Sat, 10 Oct 2020 12:56:02 +0000
(08:56 -0400)
committer
Ward Vandewege <ward@curii.com>
Sat, 10 Oct 2020 12:56:02 +0000
(08:56 -0400)
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward@curii.com>
build/rails-package-scripts/postinst.sh
patch
|
blob
|
history
diff --git
a/build/rails-package-scripts/postinst.sh
b/build/rails-package-scripts/postinst.sh
index 7ea21848b2cf5d4a047e9e5e7d0131584954552c..357c1006431452385cc3a60c028e396452b1ffc6 100644
(file)
--- 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 ;;