From 6461bbb7dff424af878b31710eebb72d66f2d9f7 Mon Sep 17 00:00:00 2001 From: Starttoaster Date: Sat, 20 Apr 2024 19:38:49 -0700 Subject: [PATCH] Add uname check if service equals timelord --- docker-entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a2d0c03..df69b82 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -246,6 +246,13 @@ fi # Install timelord if service variable contains timelord substring if [ -z "${service##*timelord*}" ]; then + arch=$(uname -m) + echo "Info: detected CPU architecture $arch" + if [ "$arch" != "x86_64" ]; then + echo "Error: Unsupported CPU architecture for running the timelord component. Requires x86_64." + exit 1 + fi + echo "Installing timelord using install-timelord.sh" # install-timelord.sh relies on lsb-release for determining the cmake installation method, and git for building chiavdf