From 1271cf430087c66f87c46689b37b8a3538c35739 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 6 Apr 2016 17:46:25 +0100 Subject: [PATCH] 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 --- bin/toaster | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}." -- 2.47.3