[bitbake-devel] [PATCH 1/5] toaster: removed superuser question from startup

Ed Bartosh ed.bartosh at linux.intel.com
Wed Oct 7 12:17:32 UTC 2015


From: brian avery <avery.brian at gmail.com>

added comment explaining how to create one later

Signed-off-by: brian avery <avery.brian at gmail.com>
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 bin/toaster | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/bin/toaster b/bin/toaster
index ac27826..d56d525 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -54,11 +54,10 @@ webserverStartAll()
     fi
 
     retval=0
-    if [ "$TOASTER_MANAGED" '=' '1' ]; then
-        python $BBBASEDIR/lib/toaster/manage.py syncdb || retval=1
-    else
-        python $BBBASEDIR/lib/toaster/manage.py syncdb --noinput || retval=1
-    fi
+    # you can always add a superuser later via
+    # python bitbake/lib/toaster/manage.py python manage.py createsuperuser --username=<ME>
+    python $BBBASEDIR/lib/toaster/manage.py syncdb --noinput || retval=1
+
     python $BBBASEDIR/lib/toaster/manage.py migrate orm || retval=2
     if [ $retval -eq 1 ]; then
         echo "Failed db sync, stopping system start" 1>&2
-- 
2.1.4




More information about the bitbake-devel mailing list