changeset 273:61f1374f0c44

Removed hard coded (and in my case wrong) port from dropping users in install-db.sh script.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 30 Jul 2018 12:53:16 +0200
parents 5ee0edc01a18
children 863ec6010045
files schema/install-db.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/schema/install-db.sh	Mon Jul 30 12:32:52 2018 +0200
+++ b/schema/install-db.sh	Mon Jul 30 12:53:16 2018 +0200
@@ -97,7 +97,7 @@
   read a
   if [[ $a == "yes" ]] ; then
     dropdb -p "$port" "$db"
-    for r in `psql -p 5433 -t -c '\du' | awk -F '|' \
+    for r in `psql -p $port -t -c '\du' | awk -F '|' \
               '$3 ~/waterway_user|waterway_admin|sys_admin/ \
                || $1 ~/waterway_user|waterway_admin|sys_admin/ \
                {print $1}'`