Browse Source

cosmos-sdk RPM package fixes

pull/1943/head
Greg Szabo 7 years ago
parent
commit
bed33467b1
5 changed files with 15 additions and 15 deletions
  1. +1
    -1
      build/cosmos-sdk/DEBIAN/changelog
  2. +5
    -5
      build/cosmos-sdk/DEBIAN/postinst
  3. +3
    -3
      build/cosmos-sdk/DEBIAN/preinst
  4. +3
    -3
      build/cosmos-sdk/etc/systemd/system/cosmos-sdk-server.service
  5. +3
    -3
      build/cosmos-sdk/etc/systemd/system/cosmos-sdk.service

+ 1
- 1
build/cosmos-sdk/DEBIAN/changelog View File

@ -1,6 +1,6 @@
cosmos-sdk (@VERSION@) @STABILITY@; urgency=medium
* Automatic build. See https://github.com/tendermint/basecoin for more information.
* Automatic build. See https://github.com/cosmos/cosmos-sdk for more information.
-- Greg Szabo <greg@philosobear.com> @DATETIMESTAMP@

+ 5
- 5
build/cosmos-sdk/DEBIAN/postinst View File

@ -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
;;


+ 3
- 3
build/cosmos-sdk/DEBIAN/preinst View File

@ -15,9 +15,9 @@ set -e
case "$1" in
install|upgrade)
if ! grep -q '^basecoin:' /etc/passwd ; then
useradd -k /dev/null -r -m -b /etc basecoin
chmod 755 /etc/basecoin
if ! grep -q '^cosmos-sdk:' /etc/passwd ; then
useradd -k /dev/null -r -m -b /etc cosmos-sdk
chmod 755 /etc/cosmos-sdk
fi
;;


+ 3
- 3
build/cosmos-sdk/etc/systemd/system/cosmos-sdk-server.service View File

@ -8,10 +8,10 @@ PropagatesReloadTo=cosmos-sdk.service
ReloadPropagatedFrom=cosmos-sdk.service
[Service]
Environment="TMHOME=/etc/basecoin/tendermint"
Environment="TMHOME=/etc/cosmos-sdk/tendermint"
Restart=on-failure
User=basecoin
Group=basecoin
User=cosmos-sdk
Group=cosmos-sdk
PermissionsStartOnly=true
ExecStart=/usr/bin/tendermint node
ExecReload=/bin/kill -HUP $MAINPID


+ 3
- 3
build/cosmos-sdk/etc/systemd/system/cosmos-sdk.service View File

@ -14,10 +14,10 @@ PropagatesReloadTo=cosmos-sdk-server.service
ReloadPropagatedFrom=cosmos-sdk-server.service
[Service]
Environment="BCHOME=/etc/basecoin"
Environment="BCHOME=/etc/cosmos-sdk"
Restart=on-failure
User=basecoin
Group=basecoin
User=cosmos-sdk
Group=cosmos-sdk
PermissionsStartOnly=true
ExecStart=/usr/bin/basecoin start --without-tendermint
ExecReload=/bin/kill -HUP $MAINPID


Loading…
Cancel
Save