From 968e8234c77087025b77be5f22a6268914d88e62 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Jun 2017 17:50:26 +0200 Subject: Add support for host key generation --- buildos | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'buildos') diff --git a/buildos b/buildos index 692dc48..3657603 100755 --- a/buildos +++ b/buildos @@ -249,6 +249,11 @@ function print () echo done + + echo "host key:" + echo + + openssl rsa -pubout -in /state/etc/host-key.pem 2>/dev/null } print | email "starting build os monitor" @@ -760,6 +765,7 @@ function bbot_start () # # sed -i -r \ -e "s/%[iI]/$tn/g" \ + -e "s#^(Environment=AUTH_KEY)=.*#\1=/state/etc/host-key.pem#" \ -e "s/^(Environment=CPU)=.*/\1=$cpu_slice/" \ -e "s/^(Environment=RAM)=.*/\1=$ram_slice/" \ -e "s/^(Environment=TOOLCHAIN_ID)=.*/\1=$ts/" \ -- cgit v1.1