summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/toaster20
1 files changed, 1 insertions, 19 deletions
diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
index 0862a3548a..7645c56b15 100755
--- a/bitbake/bin/toaster
+++ b/bitbake/bin/toaster
@@ -58,26 +58,8 @@ webserverStartAll()
58 # python bitbake/lib/toaster/manage.py python manage.py createsuperuser --username=<ME> 58 # python bitbake/lib/toaster/manage.py python manage.py createsuperuser --username=<ME>
59 python $BBBASEDIR/lib/toaster/manage.py migrate --noinput || retval=1 59 python $BBBASEDIR/lib/toaster/manage.py migrate --noinput || retval=1
60 60
61 python $BBBASEDIR/lib/toaster/manage.py migrate orm || retval=2
62
63 if [ $retval -eq 1 ]; then
64 echo "Failed db sync, aborting system start" 1>&2
65 return $retval
66 fi
67
68 python $BBBASEDIR/lib/toaster/manage.py migrate orm || retval=1
69
70 if [ $retval -eq 1 ]; then
71 printf "\nError on orm migration, rolling back...\n"
72 python $BBBASEDIR/lib/toaster/manage.py migrate orm 0001_initial --fake
73 return $retval
74 fi
75
76 python $BBBASEDIR/lib/toaster/manage.py migrate bldcontrol || retval=1
77
78 if [ $retval -eq 1 ]; then 61 if [ $retval -eq 1 ]; then
79 printf "\nError on bldcontrol migration, rolling back...\n" 62 echo "Failed migrations, aborting system start" 1>&2
80 python $BBBASEDIR/lib/toaster/manage.py migrate bldcontrol 0001_initial --fake
81 return $retval 63 return $retval
82 fi 64 fi
83 65