Fixes setup db if statement in bootstrap.sh

to setup the database if there is no developement and no test database already.
This commit is contained in:
Christian Bruckmayer 2016-03-05 15:15:22 +01:00
parent 38296b0a63
commit 50d946e4a7

View file

@ -37,7 +37,7 @@ fi
if [ ! -f /vagrant/config/database.yml ] && [ -f /vagrant/config/database.yml.example ]; then
echo -e "\nSetting up your database from config/database.yml...\n"
cp config/database.yml.example config/database.yml
if [ ! -f db/development.sqlite3 ] && [ -f db/test.sqlite3 ]; then
if [ ! -f db/development.sqlite3 ] && [ ! -f db/test.sqlite3 ]; then
bundle exec rake db:setup
else
echo -e "\n\nWARNING: You have already have a development/test database."