Skip to content

Commit

Permalink
docker: fix setup-volume sed command
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Oct 10, 2023
1 parent 8d6d90a commit a68c15c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/setup-volume.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ for (( i=0; i<$NODE_COUNT; i++ )); do
cp $NODE_MACAROON_PATH_ON_HOST $STAGING_DIR/lnd/$NODE_ID/admin.macaroon

# Adjust the paths in the staging sim.json so we don't use the host path
sed -i '' 's|'$(dirname $NODE_TLS_PATH_ON_HOST)'/tls.cert|/data/lnd/'$NODE_ID'/tls.cert|' $STAGING_DIR/sim.json
sed -i '' 's|'$(dirname $NODE_MACAROON_PATH_ON_HOST)'/admin.macaroon|/data/lnd/'$NODE_ID'/admin.macaroon|' $STAGING_DIR/sim.json
sed -i 's|'$(dirname $NODE_TLS_PATH_ON_HOST)'/tls.cert|/data/lnd/'$NODE_ID'/tls.cert|' $STAGING_DIR/sim.json
sed -i 's|'$(dirname $NODE_MACAROON_PATH_ON_HOST)'/admin.macaroon|/data/lnd/'$NODE_ID'/admin.macaroon|' $STAGING_DIR/sim.json
done

# Create Docker volume and copy the data
Expand Down

0 comments on commit a68c15c

Please sign in to comment.