bug fix on config.sh
This commit is contained in:
parent
239b6f88e1
commit
b41cba9372
@ -25,4 +25,4 @@ alias balance='cd ~/ceremonyclient/ && docker compose exec node node -balance &&
|
||||
alias nlog='cd ~/ceremonyclient/ && docker compose logs -f -n, --tail 100 && cd ~'
|
||||
alias nstart='cd ~/ceremonyclient/ && docker compose up -d && cd ~'
|
||||
alias nrestart='cd ~/ceremonyclient/ && docker compose down && docker compose up -d && cd ~'
|
||||
alias nstop='cd ~/ceremonyclient/ && docker compose down && cd ~
|
||||
alias nstop='cd ~/ceremonyclient/ && docker compose down && cd ~'
|
||||
@ -28,8 +28,8 @@ fi
|
||||
if ! line_exists "listenRESTMultiaddr: /ip4/127.0.0.1/tcp/8338" .config/config.yml; then
|
||||
# Check if the line listenRESTMultiaddr: "" exists
|
||||
if line_exists "listenRESTMultiaddr: \"\"" .config/config.yml; then
|
||||
# Substitute listenRESTMultiaddr: "" with listenGrpcMultiaddr: /ip4/127.0.0.1/tcp/8338
|
||||
sudo sed -i 's#^listenRESTMultiaddr:.*$#listenGrpcMultiaddr: /ip4/127.0.0.1/tcp/8338#' .config/config.yml || { echo "Failed to enable gRPC! Exiting..."; exit 1; }
|
||||
# Substitute listenRESTMultiaddr: "" with listenRESTMultiaddr: /ip4/127.0.0.1/tcp/8338
|
||||
sudo sed -i 's#^listenRESTMultiaddr:.*$#listenRESTMultiaddr: /ip4/127.0.0.1/tcp/8338#' .config/config.yml || { echo "Failed to enable gRPC! Exiting..."; exit 1; }
|
||||
else
|
||||
# Add listenRESTMultiaddr: /ip4/127.0.0.1/tcp/8338
|
||||
echo "listenRESTMultiaddr: /ip4/127.0.0.1/tcp/8338" | sudo tee -a .config/config.yml > /dev/null || { echo "Failed to enable gRPC! Exiting..."; exit 1; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user