Browse Source

Minor package changes

pull/1943/head
Greg Szabo 7 years ago
parent
commit
9bd1f28b8d
4 changed files with 6 additions and 20 deletions
  1. +2
    -6
      build/basecoin/DEBIAN/postinst
  2. +1
    -5
      build/ethermint/DEBIAN/postinst
  3. +2
    -8
      build/gaia/DEBIAN/postinst
  4. +1
    -1
      build/spectemplates/app-template.spec

+ 2
- 6
build/basecoin/DEBIAN/postinst View File

@ -20,12 +20,8 @@ set -e
case "$1" in case "$1" in
configure) configure)
chown basecoin.basecoin /etc/basecoin chown basecoin.basecoin /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
chmod 755 /etc/basecoin/tendermint
chown basecoin.basecoin /etc/basecoin/tendermint
sudo -Hu basecoin basecoin node init --home /etc/basecoin 2B24DEE2364762300168DF19B6C18BCE2D399EA2
sudo -Hu basecoin tendermint init --home /etc/basecoin
systemctl daemon-reload systemctl daemon-reload
;; ;;


+ 1
- 5
build/ethermint/DEBIAN/postinst View File

@ -25,11 +25,7 @@ case "$1" in
chown ethermint.ethermint /etc/ethermint/keystore/UTC--2016-10-21T22-30-03.071787745Z--7eff122b94897ea5b0e2a9abf47b86337fafebdc chown ethermint.ethermint /etc/ethermint/keystore/UTC--2016-10-21T22-30-03.071787745Z--7eff122b94897ea5b0e2a9abf47b86337fafebdc
sudo -Hu ethermint /usr/bin/ethermint --datadir /etc/ethermint init /etc/ethermint/genesis.json sudo -Hu ethermint /usr/bin/ethermint --datadir /etc/ethermint init /etc/ethermint/genesis.json
sudo -Hu ethermint tendermint init --home /etc/ethermint/tendermint
chown ethermint.ethermint /etc/ethermint/tendermint
chmod 755 /etc/ethermint/tendermint
sudo -Hu ethermint tendermint init --home /etc/ethermint
systemctl daemon-reload systemctl daemon-reload
;; ;;


+ 2
- 8
build/gaia/DEBIAN/postinst View File

@ -20,14 +20,8 @@ set -e
case "$1" in case "$1" in
configure) configure)
chown gaia.gaia /etc/gaia chown gaia.gaia /etc/gaia
sudo -Hu gaia gaia init --home /etc/gaia 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 gaia tendermint init --home /etc/gaia/tendermint
#The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542
chmod 755 /etc/gaia/tendermint
chown gaia.gaia /etc/gaia/tendermint
sudo -Hu gaia gaia node init --home /etc/gaia 2B24DEE2364762300168DF19B6C18BCE2D399EA2
sudo -Hu gaia tendermint init --home /etc/gaia
systemctl daemon-reload systemctl daemon-reload
;; ;;


+ 1
- 1
build/spectemplates/app-template.spec View File

@ -36,7 +36,7 @@ cd %{name}-%{version}-%{release}
%post %post
sudo -Hu %{name} tendermint init --home %{_sysconfdir}/%{name} sudo -Hu %{name} tendermint init --home %{_sysconfdir}/%{name}
sudo -Hu %{name} %{name} init --home %{_sysconfdir}/%{name} 2B24DEE2364762300168DF19B6C18BCE2D399EA2
sudo -Hu %{name} %{name} node init --home %{_sysconfdir}/%{name} 2B24DEE2364762300168DF19B6C18BCE2D399EA2
#Temporary until https://github.com/tendermint/basecoin/issues/123 #Temporary until https://github.com/tendermint/basecoin/issues/123
rm -f %{_sysconfdir}/%{name}/key.json rm -f %{_sysconfdir}/%{name}/key.json


Loading…
Cancel
Save