Browse Source

build process fix: tendermint folder permission

pull/1943/head
Greg Szabo 7 years ago
parent
commit
b6af7e78d8
8 changed files with 18 additions and 0 deletions
  1. +1
    -0
      build/basecoin/DEBIAN/postinst
  2. +2
    -0
      build/ethermint/DEBIAN/postinst
  3. +3
    -0
      build/gaia/DEBIAN/postinst
  4. +2
    -0
      build/spectemplates/basecoin.spec
  5. +3
    -0
      build/spectemplates/ethermint.spec
  6. +2
    -0
      build/spectemplates/gaia.spec
  7. +2
    -0
      build/spectemplates/trackomatron.spec
  8. +3
    -0
      build/trackomatron/DEBIAN/postinst

+ 1
- 0
build/basecoin/DEBIAN/postinst View File

@ -25,6 +25,7 @@ case "$1" in
#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 #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 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 #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
systemctl daemon-reload systemctl daemon-reload
;; ;;


+ 2
- 0
build/ethermint/DEBIAN/postinst View File

@ -28,6 +28,8 @@ case "$1" in
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 sudo -Hu ethermint tendermint init --home /etc/ethermint/tendermint
chmod 755 /etc/ethermint/tendermint
systemctl daemon-reload systemctl daemon-reload
;; ;;


+ 3
- 0
build/gaia/DEBIAN/postinst View File

@ -25,6 +25,9 @@ case "$1" in
#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 #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 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 #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
systemctl daemon-reload systemctl daemon-reload
;; ;;


+ 2
- 0
build/spectemplates/basecoin.spec View File

@ -39,6 +39,8 @@ sudo -Hu %{name} basecoin init --home %{_sysconfdir}/%{name} 2B24DEE236476230016
sudo -Hu %{name} tendermint init --home %{_sysconfdir}/%{name}/tendermint 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 #The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542
chmod 755 %{_sysconfdir}/%{name}/tendermint
#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
rm -f %{_sysconfdir}/%{name}/key2.json rm -f %{_sysconfdir}/%{name}/key2.json


+ 3
- 0
build/spectemplates/ethermint.spec View File

@ -35,6 +35,9 @@ cd %{name}-%{version}-%{release}
%post %post
sudo -Hu %{name} %{_bindir}/%{name} --datadir %{_sysconfdir}/%{name} init %{_sysconfdir}/%{name}/genesis.json sudo -Hu %{name} %{_bindir}/%{name} --datadir %{_sysconfdir}/%{name} init %{_sysconfdir}/%{name}/genesis.json
sudo -Hu %{name} tendermint init --home %{_sysconfdir}/%{name}/tendermint sudo -Hu %{name} tendermint init --home %{_sysconfdir}/%{name}/tendermint
chmod 755 %{_sysconfdir}/%{name}/tendermint
systemctl daemon-reload systemctl daemon-reload
%preun %preun


+ 2
- 0
build/spectemplates/gaia.spec View File

@ -38,6 +38,8 @@ sudo -Hu %{name} gaia init --home %{_sysconfdir}/%{name} 2B24DEE2364762300168DF1
sudo -Hu %{name} tendermint init --home %{_sysconfdir}/%{name}/tendermint 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 #The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542
chmod 755 %{_sysconfdir}/%{name}/tendermint
#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
rm -f %{_sysconfdir}/%{name}/key2.json rm -f %{_sysconfdir}/%{name}/key2.json


+ 2
- 0
build/spectemplates/trackomatron.spec View File

@ -38,6 +38,8 @@ sudo -Hu %{name} tracko init --home %{_sysconfdir}/%{name} 2B24DEE2364762300168D
sudo -Hu %{name} tendermint init --home %{_sysconfdir}/%{name}/tendermint 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 #The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542
chmod 755 %{_sysconfdir}/%{name}/tendermint
#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
rm -f %{_sysconfdir}/%{name}/key2.json rm -f %{_sysconfdir}/%{name}/key2.json


+ 3
- 0
build/trackomatron/DEBIAN/postinst View File

@ -25,6 +25,9 @@ case "$1" in
#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 #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 trackomatron tendermint init --home /etc/trackomatron/tendermint sudo -Hu trackomatron tendermint init --home /etc/trackomatron/tendermint
#The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542 #The above command might need some kind of additional option in the future. https://github.com/tendermint/tendermint/issues/542
chmod 755 /etc/trackomatron/tendermint
systemctl daemon-reload systemctl daemon-reload
;; ;;


Loading…
Cancel
Save