Commit 519a86e9 authored by Michal Čihař's avatar Michal Čihař

Run migrate while creating appliance

parent 747fa609
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment