Skip to content

Commit

Permalink
Merge pull request #243 from Chia-Network/uname
Browse files Browse the repository at this point in the history
Add uname check if service equals timelord
  • Loading branch information
Starttoaster authored Apr 21, 2024
2 parents 6fcfdc6 + 6461bbb commit 78c5b88
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 78c5b88

Please sign in to comment.