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
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ if [ "$1" = 'postgres' ]; then
8989 psql=( psql -v ON_ERROR_STOP=1 )
9090
9191 if [ " $PGDATABASE " != ' postgres' ]; then
92- " ${psql[@]} " --username postgres << -EOSQL
92+ " ${psql[@]} " --username postgres --dbname postgres << -EOSQL
9393 CREATE DATABASE "$PGDATABASE " ;
9494 EOSQL
9595 echo
@@ -105,8 +105,6 @@ if [ "$1" = 'postgres' ]; then
105105 EOSQL
106106 echo
107107
108- psql+=( --username " $PGUSER " --dbname " $PGDATABASE " )
109-
110108 echo
111109 # Taken from https://www.youtube.com/watch?v=JqMduJimzFQ
112110 cat << EOF >> ${PGDATA} /postgresql.conf
You can’t perform that action at this time.
0 commit comments