From a68c15c850e80a2fde30dc402877b90288e199ac Mon Sep 17 00:00:00 2001 From: Matthew Zipkin Date: Tue, 10 Oct 2023 14:31:39 -0400 Subject: [PATCH] docker: fix setup-volume sed command --- docker/setup-volume.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/setup-volume.sh b/docker/setup-volume.sh index b46141da..01a4ee7b 100755 --- a/docker/setup-volume.sh +++ b/docker/setup-volume.sh @@ -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