[bitbake-devel] [PATCH 1/2] toaster: small improvements to the startup script

Brian Avery avery.brian at gmail.com
Tue Sep 29 05:29:19 UTC 2015


this patch contains a typo. I'll resubmit.
-b

On Thu, Sep 24, 2015 at 3:31 AM, Elliot Smith <elliot.smith at intel.com> wrote:
> From: brian avery <avery.brian at gmail.com>
>
> Do not ask the user to create a superuser on running in managed mode
>
> Correctly inherit the env variable WEB_PORT if set in analysis mode
>
> Signed-off-by: brian avery <avery.brian at gmail.com>
> Signed-off-by: Elliot Smith <elliot.smith at intel.com>
> ---
>  bin/toaster | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/bin/toaster b/bin/toaster
> index ac27826..2153282 100755
> --- a/bin/toaster
> +++ b/bin/toaster
> @@ -54,11 +54,9 @@ 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
> @@ -163,7 +161,9 @@ RUNNING=0
>  NOTOASTERUI=0
>  WEBSERVER=1
>  TOASTER_BRBE=""
> -WEB_PORT="8000"
> +if [ "WEB_PORT" == "" ]; then
> +    WEB_PORT="8000"
> +fi
>  NOBROWSER=0
>
>  for param in $*; do
> --
> 1.9.3
>
> ---------------------------------------------------------------------
> Intel Corporation (UK) Limited
> Registered No. 1134945 (England)
> Registered Office: Pipers Way, Swindon SN3 1RJ
> VAT No: 860 2173 47
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
>



More information about the bitbake-devel mailing list