diff --git a/devops/rpmbuild/extrafiles/DEBIAN-basecoin/postinst b/devops/rpmbuild/extrafiles/DEBIAN-basecoin/postinst index 789cd292a..8c9e169f8 100644 --- a/devops/rpmbuild/extrafiles/DEBIAN-basecoin/postinst +++ b/devops/rpmbuild/extrafiles/DEBIAN-basecoin/postinst @@ -21,7 +21,7 @@ case "$1" in configure) chown basecoin.basecoin /etc/basecoin chown basecoin.basecoin /etc/basecoin/tendermint - sudo -Hu basecoin basecoin init --home /etc/basecoin + sudo -Hu basecoin basecoin init --home /etc/basecoin 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 #The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542 diff --git a/devops/rpmbuild/spectemplates/basecoin.spec b/devops/rpmbuild/spectemplates/basecoin.spec index 9b6ae02b4..88690f2e8 100644 --- a/devops/rpmbuild/spectemplates/basecoin.spec +++ b/devops/rpmbuild/spectemplates/basecoin.spec @@ -44,7 +44,7 @@ cd %{name}-%{version} %{__cp} -a * %{buildroot} %post -sudo -Hu %{name} basecoin init --home %{_sysconfdir}/%{name} +sudo -Hu %{name} basecoin init --home %{_sysconfdir}/%{name} 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 %{name} tendermint init --home %{_sysconfdir}/%{name}/tendermint #The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542