mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #1814 from jesmg/patch-1
Fixing admin user creation in docker
This commit is contained in:
commit
447718d6fa
1 changed files with 3 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ dockerize -wait tcp://$DATABASE_HOST:$DATABASE_PORT -timeout 60s true
|
||||||
if [ $(echo "show tables;" | mysql --host $DATABASE_HOST --port $DATABASE_PORT $MYSQL_DATABASE | wc -l) -le 1 ]; then
|
if [ $(echo "show tables;" | mysql --host $DATABASE_HOST --port $DATABASE_PORT $MYSQL_DATABASE | wc -l) -le 1 ]; then
|
||||||
echo ">>> Initializing database..."
|
echo ">>> Initializing database..."
|
||||||
bundle exec rake db:schema:load
|
bundle exec rake db:schema:load
|
||||||
|
|
||||||
|
echo ">>> Seed database..."
|
||||||
|
bundle exec rake db:seed
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ">>> Upgrading database..."
|
echo ">>> Upgrading database..."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue