mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix user to run rake task for dbsetup
This commit is contained in:
parent
92f27561df
commit
fe8483b92e
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ if [ ! -f /vagrant/config/database.yml ] && [ -f /vagrant/config/database.yml.ex
|
|||
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
|
||||
bundle exec rake db:setup
|
||||
su - vagrant -c "cd /vagrant/; bundle exec rake db:setup"
|
||||
else
|
||||
echo -e "\n\nWARNING: You have already have a development/test database."
|
||||
echo -e "WARNING: Please make sure this database works in this vagrant box!\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue