fix: replace "sh" with "/bin/sh" in docker-compose.yaml command

This commit is contained in:
Prad Nukala (aider)
2024-08-29 14:11:16 -04:00
parent 45e0219940
commit c74c6b1084
+1 -1
View File
@@ -25,7 +25,7 @@ services:
- CLEAN=true - CLEAN=true
- BLOCK_TIME=5s - BLOCK_TIME=5s
command: > command: >
sh -c " /bin/sh -c "
if [ ! -d /root/.core/config ]; then if [ ! -d /root/.core/config ]; then
/usr/bin/sonrd init $${MONIKER} --chain-id $${CHAIN_ID} --default-denom $${DENOM} && /usr/bin/sonrd init $${MONIKER} --chain-id $${CHAIN_ID} --default-denom $${DENOM} &&
sed -i 's/laddr = \"tcp:\\/\\/127.0.0.1:26657\"/laddr = \"tcp:\\/\\/0.0.0.0:26657\"/g' /root/.core/config/config.toml && sed -i 's/laddr = \"tcp:\\/\\/127.0.0.1:26657\"/laddr = \"tcp:\\/\\/0.0.0.0:26657\"/g' /root/.core/config/config.toml &&