Skip to content

Commit

Permalink
Update docker-start.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
simeononsecurity authored Feb 16, 2024
1 parent e710c9f commit b7d16c6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ full_path="${base_path}/${highest_version}"
#Create Expected Config File
touch "${full_path}/Miner_config.cfg"

# Detect ARM architecture
if [ "$(uname -m)" = "armv7l" ] || [ "$(uname -m)" = "aarch64" ]; then
DUCO_RASPI_CPU_IOT="y"
else
DUCO_RASPI_CPU_IOT="n"
fi

# Export for Dockerfile to pick up
export DUCO_RASPI_CPU_IOT

echo '[PC Miner]' > "${full_path}/Miner_config.cfg"
echo "username = ${DUCO_USERNAME}" >> "${full_path}/Miner_config.cfg"
echo "mining_key = $(echo -n ${DUCO_MINING_KEY} | base64)" >> "${full_path}/Miner_config.cfg"
Expand Down

0 comments on commit b7d16c6

Please sign in to comment.