init: apply sql migrations before start

This commit is contained in:
Jérôme Schneider 2013-11-25 12:08:22 +01:00
parent 910210a0b8
commit 3f6b90ee96
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ fi
#
do_start()
{
log_action_msg "Applying new migrations .."
su authentic -p -c "/usr/bin/authentic2-ctl syncdb --migrate --noinput"
log_action_msg ".. done"
# Return
# 0 if daemon has been started
# 1 if daemon was already running