@ -19,13 +19,13 @@ set -e
case "$1" in
configure)
chown basecoin.basecoin /etc/basecoin
sudo -Hu basecoin basecoin init --home /etc/basecoin 2B24DEE2364762300168DF19B6C18BCE2D399EA2
chown cosmos-sdk.cosmos-sdk /etc/cosmos-sdk
sudo -Hu cosmos-sdk basecoin init --home /etc/cosmos-sdk 2B24DEE2364762300168DF19B6C18BCE2D399EA2
#The above command generates a genesis.json file that contains validators. This is wrong, the validator part should be empty. https://github.com/tendermint/basecoin/issues/124
sudo -Hu basecoin tendermint init --home /etc/basecoin /tendermint
sudo -Hu cosmos-sdk tendermint init --home /etc/cosmos-sdk /tendermint
#The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542
chmod 755 /etc/basecoin /tendermint
chown basecoin.basecoin /etc/basecoin /tendermint
chmod 755 /etc/cosmos-sdk /tendermint
chown cosmos-sdk.cosmos-sdk /etc/cosmos-sdk /tendermint
systemctl daemon-reload
;;