Skip to content

Commit

Permalink
Add uname check if service equals timelord
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster committed Apr 21, 2024
1 parent 6fcfdc6 commit 6461bbb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6461bbb

Please sign in to comment.