Skip to content

Commit

Permalink
Also fix admin token.
Browse files Browse the repository at this point in the history
  • Loading branch information
winder committed May 4, 2023
1 parent a747fdb commit 6466743
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docker/files/run/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ function configure_data_dir() {
algocfg -d . set -p EndpointAddress -v "0.0.0.0:${ALGOD_PORT}"

# check for token overrides
if [ "$TOKEN" != "" ]; then
for dir in ${ALGORAND_DATA}/../*/; do
echo "$TOKEN" > "$dir/algod.token"
done
fi
if [ "$ADMIN_TOKEN" != "" ]; then
echo "$ADMIN_TOKEN" >algod.admin.token
fi
for dir in ${ALGORAND_DATA}/../*/; do
if [ "$TOKEN" != "" ]; then
echo "$TOKEN" > "$dir/algod.token"
fi
if [ "$ADMIN_TOKEN" != "" ]; then
echo "$ADMIN_TOKEN" > "$dir/algod.admin.token"
fi
done

# configure telemetry
if [ "$TELEMETRY_NAME" != "" ]; then
Expand Down

0 comments on commit 6466743

Please sign in to comment.