From 53879c46738454166751d9b8b771aa8e3ca2b65a Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 12 Apr 2019 16:30:49 -0700 Subject: [PATCH] scripts: Rename DEFAULT_USER to POSTGRES_USER. Signed-off-by: Anders Kaseorg --- scripts/setup/terminate-psql-sessions | 6 +++--- tools/setup/postgres-init-dev-db | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/setup/terminate-psql-sessions b/scripts/setup/terminate-psql-sessions index d243fccbe6..cb7da383cd 100755 --- a/scripts/setup/terminate-psql-sessions +++ b/scripts/setup/terminate-psql-sessions @@ -1,9 +1,9 @@ #!/usr/bin/env bash set -e -DEFAULT_USER="postgres" +POSTGRES_USER="postgres" if [ "$(uname)" = "OpenBSD" ]; then - DEFAULT_USER="_postgresql" + POSTGRES_USER="_postgresql" fi cd / @@ -15,7 +15,7 @@ tables="$(printf "'%s'," "${@//\'/\'\'}")" tables="${tables%,}" if [ "$EUID" -eq 0 ]; then - su - "$DEFAULT_USER" -c "psql postgres '$DEFAULT_USER'" <