Skip to content
Snippets Groups Projects
Commit 373ad693 authored by Jason Hiser's avatar Jason Hiser
Browse files

Merge branch '2-postgres_setup-sh-fails-with-username-containing-a' into 'master'

Resolve "postgres_setup.sh fails with username containing a '-'"

Closes #2

See merge request allnp/peasoup_umbrella!1

Former-commit-id: 38632a1a
parents 09ed4300 77b17e8a
No related branches found
No related tags found
No related merge requests found
......@@ -11,8 +11,8 @@ main()
chmod og-rw $HOME/.pgpass
#Create Database User and Table
echo "CREATE ROLE $USER WITH CREATEDB LOGIN NOSUPERUSER NOCREATEROLE PASSWORD '$randpass'" | sudo -u postgres psql
echo "ALTER ROLE $USER WITH PASSWORD '$randpass'" | sudo -u postgres psql
echo "CREATE ROLE \"$USER\" WITH CREATEDB LOGIN NOSUPERUSER NOCREATEROLE PASSWORD '$randpass'" | sudo -u postgres psql
echo "ALTER ROLE \"$USER\" WITH PASSWORD '$randpass'" | sudo -u postgres psql
dropdb peasoup_$USER
createdb peasoup_$USER
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment