add database and username variables to psql command user/hopkinsju/build-eg-replication
authorJustin Hopkins <hopkinsju@gmail.com>
Thu, 14 Jun 2012 14:42:42 +0000 (09:42 -0500)
committerJustin Hopkins <hopkinsju@gmail.com>
Thu, 14 Jun 2012 14:42:42 +0000 (09:42 -0500)
Open-ILS/examples/build-eg-replication.sh

index 8c98ed4..427b267 100755 (executable)
@@ -51,7 +51,7 @@ if [ "_$PGUSER" == "_" ]; then
 fi
 
 if [ "_$TABLES" == "_" ]; then
-  TABLES=$(psql -tc "
+  TABLES=$(psql --dbname=$PGDATABASE --username=$PGUSER -tc "
     select array_to_string(array_agg(table_schema || '.' || table_name),' ')
       from information_schema.tables
       where table_schema in (