Handle config update for ostype Darwin
All checks were successful
Deploy Contract / deploy (pull_request) Successful in 1m36s
Lint / Run flake8 on python integration tests (pull_request) Successful in 2m45s
Build / build (pull_request) Successful in 3m35s
Lint / Run golangci-lint (pull_request) Successful in 5m44s
Tests / test-rpc (pull_request) Successful in 6m45s
Tests / sdk_tests (pull_request) Successful in 10m33s
Tests / test-importer (pull_request) Successful in 20m38s
Tests / test-unit (pull_request) Successful in 7m4s

This commit is contained in:
Prathamesh Musale 2024-04-11 11:39:08 +05:30
parent 7ca24ce141
commit 1cb33cc092

View File

@ -101,9 +101,15 @@ if [ "$1" == "clean" ] || [ ! -d "$HOME/.laconicd/data/blockstore.db" ]; then
fi fi
# Enable telemetry (prometheus metrics: http://localhost:1317/metrics?format=prometheus) # Enable telemetry (prometheus metrics: http://localhost:1317/metrics?format=prometheus)
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' 's/enabled = false/enabled = true/g' $HOME/.laconicd/config/app.toml
sed -i '' 's/prometheus-retention-time = 0/prometheus-retention-time = 60/g' $HOME/.laconicd/config/app.toml
sed -i '' 's/prometheus = false/prometheus = true/g' $HOME/.laconicd/config/config.toml
else
sed -i 's/enabled = false/enabled = true/g' $HOME/.laconicd/config/app.toml sed -i 's/enabled = false/enabled = true/g' $HOME/.laconicd/config/app.toml
sed -i 's/prometheus-retention-time = 0/prometheus-retention-time = 60/g' $HOME/.laconicd/config/app.toml sed -i 's/prometheus-retention-time = 0/prometheus-retention-time = 60/g' $HOME/.laconicd/config/app.toml
sed -i 's/prometheus = false/prometheus = true/g' $HOME/.laconicd/config/config.toml sed -i 's/prometheus = false/prometheus = true/g' $HOME/.laconicd/config/config.toml
fi
# Allocate genesis accounts (cosmos formatted addresses) # Allocate genesis accounts (cosmos formatted addresses)
laconicd add-genesis-account $KEY 100000000000000000000000000aphoton --keyring-backend $KEYRING laconicd add-genesis-account $KEY 100000000000000000000000000aphoton --keyring-backend $KEYRING