[yocto] [PATCH V2 4/7] yocto-autobuilder-setup: Add worker init script setup

californialsullivan at gmail.com californialsullivan at gmail.com
Tue Sep 30 10:01:56 PDT 2014


From: California Sullivan <california.l.sullivan at intel.com>

The password and address fields in the worker init script need to
be set up.

Signed-off-by: California Sullivan <california.l.sullivan at intel.com>
---
 yocto-autobuilder-setup | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/yocto-autobuilder-setup b/yocto-autobuilder-setup
index aee71ce..615deb4 100644
--- a/yocto-autobuilder-setup
+++ b/yocto-autobuilder-setup
@@ -60,6 +60,7 @@ export OPTIMIZED_GIT_CLONE=False
 export OGIT_TRASH_DIR=/tmp/yocto-autobuilder/git/trash
 export OGIT_TRASH_CRON_TIME="0 0 * * *"
 export OGIT_TRASH_NICE_LEVEL="19"
+HOST_ADDR=$(hostname -I)
 
 ##########################
 #
@@ -153,6 +154,10 @@ if [ -n "${config_check:+x}" ]; then
     sed -i "s/<USER>/$username/g" ${PWD}/yocto-worker/buildbot.tac
     sed -i "s/<PASS>/$password/g" ${PWD}/yocto-worker/buildbot.tac
     echo ""
+    echo " Updating worker-init script used for google cloud building. "
+    sed -i "s/<HOST_ADDR>/$HOST_ADDR/" ${PWD}/bin/worker-init
+    sed -i "s/<PASS>/$password/" ${PWD}/bin/worker-init
+    echo ""
     echo " If you wish to use your own generated username and password please "
     echo " modify the above files as needed. Please see the README for more "
     echo " information. "
-- 
1.9.1




More information about the yocto mailing list