File tree Expand file tree Collapse file tree 11 files changed +11
-33
lines changed Expand file tree Collapse file tree 11 files changed +11
-33
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
89
89
psql=( psql -v ON_ERROR_STOP=1 )
90
90
91
91
if [ " $PGDATABASE " != ' postgres' ]; then
92
- " ${psql[@]} " --username postgres << -EOSQL
92
+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
93
93
CREATE DATABASE "$PGDATABASE " ;
94
94
EOSQL
95
95
echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105
105
EOSQL
106
106
echo
107
107
108
- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109
-
110
108
echo
111
109
# Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112
110
cat << EOF >> ${PGDATA} /postgresql.conf
You can’t perform that action at this time.
0 commit comments