build process fix: tendermint folder permission
This commit is contained in:
parent
22fb175d62
commit
b6af7e78d8
|
@ -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
|
||||
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
|
||||
systemctl daemon-reload
|
||||
;;
|
||||
|
||||
|
|
|
@ -28,6 +28,8 @@ case "$1" in
|
|||
sudo -Hu ethermint /usr/bin/ethermint --datadir /etc/ethermint init /etc/ethermint/genesis.json
|
||||
sudo -Hu ethermint tendermint init --home /etc/ethermint/tendermint
|
||||
|
||||
chmod 755 /etc/ethermint/tendermint
|
||||
|
||||
systemctl daemon-reload
|
||||
;;
|
||||
|
||||
|
|
|
@ -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
|
||||
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
|
||||
|
||||
systemctl daemon-reload
|
||||
;;
|
||||
|
||||
|
|
|
@ -39,6 +39,8 @@ sudo -Hu %{name} basecoin init --home %{_sysconfdir}/%{name} 2B24DEE236476230016
|
|||
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
|
||||
|
||||
chmod 755 %{_sysconfdir}/%{name}/tendermint
|
||||
|
||||
#Temporary until https://github.com/tendermint/basecoin/issues/123
|
||||
rm -f %{_sysconfdir}/%{name}/key.json
|
||||
rm -f %{_sysconfdir}/%{name}/key2.json
|
||||
|
|
|
@ -35,6 +35,9 @@ cd %{name}-%{version}-%{release}
|
|||
%post
|
||||
sudo -Hu %{name} %{_bindir}/%{name} --datadir %{_sysconfdir}/%{name} init %{_sysconfdir}/%{name}/genesis.json
|
||||
sudo -Hu %{name} tendermint init --home %{_sysconfdir}/%{name}/tendermint
|
||||
|
||||
chmod 755 %{_sysconfdir}/%{name}/tendermint
|
||||
|
||||
systemctl daemon-reload
|
||||
|
||||
%preun
|
||||
|
|
|
@ -38,6 +38,8 @@ sudo -Hu %{name} gaia init --home %{_sysconfdir}/%{name} 2B24DEE2364762300168DF1
|
|||
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
|
||||
|
||||
chmod 755 %{_sysconfdir}/%{name}/tendermint
|
||||
|
||||
#Temporary until https://github.com/tendermint/basecoin/issues/123
|
||||
rm -f %{_sysconfdir}/%{name}/key.json
|
||||
rm -f %{_sysconfdir}/%{name}/key2.json
|
||||
|
|
|
@ -38,6 +38,8 @@ sudo -Hu %{name} tracko init --home %{_sysconfdir}/%{name} 2B24DEE2364762300168D
|
|||
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
|
||||
|
||||
chmod 755 %{_sysconfdir}/%{name}/tendermint
|
||||
|
||||
#Temporary until https://github.com/tendermint/basecoin/issues/123
|
||||
rm -f %{_sysconfdir}/%{name}/key.json
|
||||
rm -f %{_sysconfdir}/%{name}/key2.json
|
||||
|
|
|
@ -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
|
||||
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
|
||||
|
||||
chmod 755 /etc/trackomatron/tendermint
|
||||
|
||||
systemctl daemon-reload
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue