Permalink
Browse files

Run migrate while creating appliance

  • Loading branch information...
1 parent 747fa60 commit 519a86e9ec91d66168eb187069839c437cbe66bc @nijel nijel committed Jul 30, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 appliance/weblate
View
@@ -23,6 +23,9 @@ case "$1" in
echo 'Creating database for Weblate'
su - wwwrun -s /bin/bash -c '/usr/share/weblate/manage.py syncdb --noinput'
rc_status -v -r
+ echo 'Updating database for Weblate'
+ su - wwwrun -s /bin/bash -c '/usr/share/weblate/manage.py migrate'
+ rc_status -v -r
echo 'Adding admin user for Weblate'
su - wwwrun -s /bin/bash -c '/usr/share/weblate/manage.py createadmin'
rc_status -v -r

0 comments on commit 519a86e

Please sign in to comment.