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

@ -20,4 +20,4 @@ EXPOSE 8443
ENTRYPOINT ["/bin/sh", "-c"]
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt
CMD [ "restart-aesmd >&2; exec gramine-sgx tee-self-attestation-test" ]
CMD [ "[[ -r /var/run/aesmd/aesm.socket ]] || restart-aesmd >&2; exec gramine-sgx tee-self-attestation-test" ]