diff options
author | khilman <khilman@users.noreply.github.com> | 2018-09-13 11:16:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 11:16:31 -0700 |
commit | 53cecb649a6afb33ab6e4309db03ee7b697282d7 (patch) | |
tree | e26e0329742d5ef7cf4e0209868f646225d7d747 /lava-slave/scripts/setup.sh | |
parent | 0d143406d41fcd7a4b03a3941cc3a66c294b21b2 (diff) | |
parent | 8034ea8a06d29cf148c3170b044385e874e5b7e1 (diff) |
Merge pull request #47 from kernelci/fix/zmq
lavalab-gen: fiz zmq key filename assumptions
Diffstat (limited to 'lava-slave/scripts/setup.sh')
-rwxr-xr-x | lava-slave/scripts/setup.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lava-slave/scripts/setup.sh b/lava-slave/scripts/setup.sh index e688c9e..7cff479 100755 --- a/lava-slave/scripts/setup.sh +++ b/lava-slave/scripts/setup.sh @@ -120,6 +120,7 @@ if [ -e /etc/lava-dispatcher/certificates.d/$(hostname).key ];then echo "INFO: Enabling encryption" sed -i 's,.*ENCRYPT=.*,ENCRYPT="--encrypt",' /etc/lava-dispatcher/lava-slave sed -i "s,.*SLAVE_CERT=.*,SLAVE_CERT=\"--slave-cert /etc/lava-dispatcher/certificates.d/$(hostname).key_secret\"," /etc/lava-dispatcher/lava-slave + (cd /etc/lava-dispatcher/certificates.d; if [ -e master.key ]; then cp master.key $LAVA_MASTER.key; fi) sed -i "s,.*MASTER_CERT=.*,MASTER_CERT=\"--master-cert /etc/lava-dispatcher/certificates.d/$LAVA_MASTER.key\"," /etc/lava-dispatcher/lava-slave fi exit 0 |