From: Ed Bartosh Date: Wed, 2 Dec 2015 18:02:35 +0000 (-0800) Subject: toaster: set DATABASE_URL in toaster script X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac4800cc8b765b270f27ea9a5938f3f2a2e0ced4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: set DATABASE_URL in toaster script Set environment variable DATABASE_URL in bitbake/bit/toaster Variable value is obtained by running 'manage.py get-dburl' Signed-off-by: Ed Bartosh Signed-off-by: brian avery Signed-off-by: Richard Purdie --- diff --git a/bin/toaster b/bin/toaster index fbda8dc9f4c..23973199166 100755 --- a/bin/toaster +++ b/bin/toaster @@ -300,6 +300,7 @@ case $CMD in echo "Bitbake server start failed" else export BBSERVER=0.0.0.0:-1 + export DATABASE_URL=`$BBBASEDIR/lib/toaster/manage.py get-dburl` if [ $NOTOASTERUI -eq 0 ]; then # we start the TOASTERUI only if not inhibited bitbake --observe-only -u toasterui >>${BUILDDIR}/toaster_ui.log 2>&1 & echo $! >${BUILDDIR}/.toasterui.pid fi