tweak resetdb.sh

This commit is contained in:
Scott Comer 2014-05-27 09:31:50 -05:00
parent 3bdf12c981
commit 3886c0a413
1 changed files with 7 additions and 6 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh -x
dropdb jam
dropdb jam_db_build
dropdb jam_ruby_test
dropdb jam_web_test
dropdb jam_websockets_test
sudo su postgres -c "createdb jam"
dropdb --if-exists jam
dropdb --if-exists jam_db_build
dropdb --if-exists jam_ruby_test
dropdb --if-exists jam_web_test
dropdb --if-exists jam_websockets_test
createdb -Upostgres jam || sudo su postgres -c "createdb jam"