fix: only restart aesmd if aesm.socket is not readable

Signed-off-by: Harald Hoyer <harald@matterlabs.dev>
This commit is contained in:
Harald Hoyer 2024-05-21 10:33:39 +02:00
parent 0b25ccc492
commit 284393bf76
Signed by: harald
GPG key ID: F519A1143B3FBE32
5 changed files with 5 additions and 5 deletions

View file

@ -22,4 +22,4 @@ EXPOSE 8443
ENTRYPOINT ["/bin/sh", "-c"]
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt
CMD [ "echo tee-vault-admin in SGX mode starting; restart-aesmd ; exec gramine-sgx tee-vault-admin" ]
CMD [ "echo tee-vault-admin in SGX mode starting; [[ -r /var/run/aesmd/aesm.socket ]] || restart-aesmd ; exec gramine-sgx tee-vault-admin" ]