Skip to content

Commit 4422862

Browse files
Fix admin login by creating symlink to network-specific config file
1 parent 5a8284d commit 4422862

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker_entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,13 @@ echo "$TOR_ADDRESS" > /var/lib/tor/hsv3dojo/hostname
104104
if [ "$COMMON_BTC_NETWORK" = "testnet" ]; then
105105
PAIRING_URL="http://$TOR_ADDRESS/test/v2"
106106
EXPLORER_ENDPOINT="mempoolhqx4isw62xs7abwphsq7ldayuidyx2v2oethdhhj6mlo2r6ad.onion/testnet4"
107+
# Create symlink for testnet admin config
108+
ln -sf /home/node/app/static/admin/conf/index-testnet.js /home/node/app/static/admin/conf/index.js
107109
else
108110
PAIRING_URL="http://$TOR_ADDRESS/v2"
109111
EXPLORER_ENDPOINT="mempoolhqx4isw62xs7abwphsq7ldayuidyx2v2oethdhhj6mlo2r6ad.onion"
112+
# Create symlink for mainnet admin config
113+
ln -sf /home/node/app/static/admin/conf/index-mainnet.js /home/node/app/static/admin/conf/index.js
110114
fi
111115

112116
mkdir -p /var/lib/tor/hsv3explorer

0 commit comments

Comments
 (0)