Skip to content
Snippets Groups Projects
Commit 4fc9ce7a authored by Will Hawkins's avatar Will Hawkins
Browse files

Fix popd

parent 5e467e3a
No related branches found
No related tags found
1 merge request!1Resolve "postgres_setup.sh fails with username containing a '-'"
......@@ -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