From: Ed Bartosh Date: Wed, 6 Apr 2016 16:46:25 +0000 (+0100) Subject: toaster: update conf/local.conf X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1271cf430087c66f87c46689b37b8a3538c35739;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: update conf/local.conf Added 'INHERIT+="toaster buildhistory"' line to the conf/local conf when Toaster starts. It should make commandline builds to provide all required information to Toaster backend. Signed-off-by: Ed Bartosh Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- diff --git a/bin/toaster b/bin/toaster index 5cc77edb338..dfaff2e0719 100755 --- a/bin/toaster +++ b/bin/toaster @@ -252,9 +252,9 @@ case $CMD in fi # Create configuration file - conf=${BUILDDIR}/conf/toaster.conf - echo "# Created by toaster start script" > $conf - echo "INHERIT+=\"toaster buildhistory\"" >> $conf + conf=${BUILDDIR}/conf/local.conf + line='INHERIT+="toaster buildhistory"' + grep -q "$line" $conf || echo $line >> $conf if [ $WEBSERVER -gt 0 ] && ! webserverStartAll; then echo "Failed ${CMD}."