Skip to content

Commit

Permalink
Added $password var to postgresbuilder.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
elimisteve committed Aug 10, 2012
1 parent a3a0a7c commit ae6afc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server-scripts/postgresbuilder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ db_name=$project_name
# NOTE: $username definition assumes settings.py-needed still defined
# 'USER' as %(PROJECT_NAME)s_user
username=${project_name}_user

password=$2

sudo -u postgres psql -a -U postgres -d template1 -c "CREATE USER $username WITH PASSWORD '$password';"
sudo -u postgres psql -a -U postgres -d template1 -c "CREATE DATABASE $db_name OWNER $username ENCODING 'UTF8';"
Expand Down

0 comments on commit ae6afc3

Please sign in to comment.