diff --git a/cont-init.d/50_configure.sh b/cont-init.d/50_configure.sh index 3cb4f7e..200f3a7 100755 --- a/cont-init.d/50_configure.sh +++ b/cont-init.d/50_configure.sh @@ -3,11 +3,13 @@ set -e echo "Current User: $(whoami)" -# CERT_FILE_KEY="$(tedge config get device.key_path)" -# chmod 600 "$CERT_FILE_KEY" +# Note: Workaround for lack of docker compose functionality +# secrets `uid`, `gid` and `mode` are not supported, they will be ignored +CERT_FILE_KEY="$(tedge config get device.key_path)" +chmod 600 "$CERT_FILE_KEY" -# CERT_FILE_PUB="$(tedge config get device.cert_path)" -# chmod 644 "$CERT_FILE_PUB" +CERT_FILE_PUB="$(tedge config get device.cert_path)" +chmod 644 "$CERT_FILE_PUB" # Support variable set by go-c8y-cli if [ -n "$C8Y_DOMAIN" ] && [ -z "${TEDGE_C8Y_URL:-}" ]; then