changeset 1107:d1fb2babaa95

Avoid psql's usage of a pager Under some circumstances (it happened during build of a Dockerfile) psql used a pager for query output in this place, which is clearly undesirable inside a script that should return without user interaction.
author Tom Gottfried <tom@intevation.de>
date Fri, 02 Nov 2018 16:27:54 +0100
parents ca4e0cd607ce
children 5adee8b0e29f
files schema/install-db.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/schema/install-db.sh	Fri Nov 02 14:51:14 2018 +0100
+++ b/schema/install-db.sh	Fri Nov 02 16:27:54 2018 +0100
@@ -108,7 +108,7 @@
        -f "$BASEDIR/default_sysconfig.sql"
 
   # setup initial login roles with given passwords:
-  psql -qt -p "$port" -d "$db" \
+  psql -qt -P pager=off -p "$port" -d "$db" \
        -v adminpw="$adminpw" -v metapw="$metapw" \
        -f "$BASEDIR/std_login_roles.sql"