diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-05 17:50:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-06-05 17:50:26 +0200 |
commit | 968e8234c77087025b77be5f22a6268914d88e62 (patch) | |
tree | 0e791a2718e67d0df7959b68d108f728f21edd5e /buildos | |
parent | bb6d0002c924dbb74674585ff05ee23c436f2a32 (diff) |
Add support for host key generation
Diffstat (limited to 'buildos')
-rwxr-xr-x | buildos | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 () # <toolchain-name> <toolchain-index> # 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/" \ |