Rename ehtereum backend packages to match coin naming convention

This commit is contained in:
Martin Boehm 2018-06-06 11:20:27 +02:00
parent 9c01962001
commit f09a2ca12b
18 changed files with 24 additions and 18 deletions

View File

@ -1,3 +1,9 @@
ethereum (1.8.10-satoshilabs2) unstable; urgency=medium
* Rename packages and directories
-- Martin Bohm <martin.bohm@satoshilabs.com> Wed, 06 Jun 2018 11:12:13 +0200
ethereum (1.8.10-satoshilabs1) unstable; urgency=medium
* Initial build

View File

@ -5,12 +5,12 @@ Maintainer: martin.bohm@satoshilabs.com
Build-Depends: debhelper, wget, tar, gzip, make, dh-systemd, dh-exec
Standards-Version: 3.9.5
Package: ethereum-eth
Package: ethereum
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate
Description: Satoshilabs packaged ethereum geth server
Package: ethereum-ropsten
Package: ethereum-testnet-ropsten
Architecture: amd64
Depends: ${shlibs:Depends}, ${misc:Depends}, logrotate
Description: Satoshilabs packaged ethereum geth server

View File

@ -1 +0,0 @@
/opt/coins/data/eth/eth

View File

@ -1 +0,0 @@
ethereum/* /opt/coins/nodes/ethereum/eth

View File

@ -1 +0,0 @@
/opt/coins/data/eth-ropsten/eth

View File

@ -1 +0,0 @@
ethereum/* /opt/coins/nodes/ethereum/eth-ropsten

View File

@ -0,0 +1 @@
/opt/coins/data/ethereum_testnet_ropsten/backend

View File

@ -0,0 +1 @@
ethereum/* /opt/coins/nodes/ethereum_testnet_ropsten

View File

@ -1,4 +1,4 @@
/opt/coins/data/eth/eth/eth.log
/opt/coins/data/ethereum_testnet_ropsten/backend/ethereum_testnet_ropsten.log
{
rotate 7
daily

View File

@ -9,9 +9,9 @@ case "$1" in
useradd --system -M -U ethereum -s /bin/false
fi
if [ "$(stat -c '%U' /opt/coins/data/eth-ropsten/eth)" != "ethereum" ]
if [ "$(stat -c '%U' /opt/coins/data/ethereum_testnet_ropsten/backend)" != "ethereum" ]
then
chown -R ethereum:ethereum /opt/coins/data/eth-ropsten/eth
chown -R ethereum:ethereum /opt/coins/data/ethereum_testnet_ropsten/backend
fi
;;

View File

@ -1,7 +1,7 @@
# It is not recommended to modify this file in-place, because it will
# be overwritten during package upgrades. If you want to add further
# options or overwrite existing ones then use
# $ systemctl edit ethereum-ropsten.service
# $ systemctl edit ethereum-testnet-ropsten.service
# See "man systemd.service" for details.
[Unit]
@ -9,11 +9,11 @@ Description=Ethereum daemon (ropsten testnet)
After=network.target
[Service]
ExecStart=/bin/sh -c '/opt/coins/nodes/ethereum/eth-ropsten/geth --ipcdisable --testnet --cache 1024 --datadir /opt/coins/data/eth-ropsten/eth --port 48333 --ws --wsaddr 0.0.0.0 --wsport 18036 --wsorigins * 2>>/opt/coins/data/eth-ropsten/eth/eth.log'
ExecStart=/bin/sh -c '/opt/coins/nodes/ethereum_testnet_ropsten/geth --ipcdisable --testnet --cache 1024 --datadir /opt/coins/data/ethereum_testnet_ropsten/backend --port 48333 --ws --wsaddr 0.0.0.0 --wsport 18036 --wsorigins * 2>>/opt/coins/data/ethereum_testnet_ropsten/backend/ethereum_testnet_ropsten.log'
User=ethereum
Type=simple
Restart=on-failure
WorkingDirectory=/opt/coins/nodes/ethereum/eth-ropsten/
WorkingDirectory=/opt/coins/nodes/ethereum_testnet_ropsten
# Resource limits
LimitNOFILE=500000

View File

@ -0,0 +1 @@
/opt/coins/data/ethereum/backend

View File

@ -0,0 +1 @@
ethereum/* /opt/coins/nodes/ethereum

View File

@ -1,4 +1,4 @@
/opt/coins/data/eth-ropsten/eth/eth.log
/opt/coins/data/ethereum/backend/ethereum.log
{
rotate 7
daily

View File

@ -9,9 +9,9 @@ case "$1" in
useradd --system -M -U ethereum -s /bin/false
fi
if [ "$(stat -c '%U' /opt/coins/data/eth/eth)" != "ethereum" ]
if [ "$(stat -c '%U' /opt/coins/data/ethereum/backend)" != "ethereum" ]
then
chown -R ethereum:ethereum /opt/coins/data/eth/eth
chown -R ethereum:ethereum /opt/coins/data/ethereum/backend
fi
;;

View File

@ -1,7 +1,7 @@
# It is not recommended to modify this file in-place, because it will
# be overwritten during package upgrades. If you want to add further
# options or overwrite existing ones then use
# $ systemctl edit ethereum-eth.service
# $ systemctl edit ethereum.service
# See "man systemd.service" for details.
[Unit]
@ -9,11 +9,11 @@ Description=Ethereum daemon (mainnet)
After=network.target
[Service]
ExecStart=/bin/sh -c '/opt/coins/nodes/ethereum/eth/geth --ipcdisable --syncmode full --cache 1024 --datadir /opt/coins/data/eth/eth --port 38336 --ws --wsaddr 0.0.0.0 --wsport 8036 --wsorigins * 2>>/opt/coins/data/eth/eth/eth.log'
ExecStart=/bin/sh -c '/opt/coins/nodes/ethereum/geth --ipcdisable --syncmode full --cache 1024 --datadir /opt/coins/data/eth/eth --port 38336 --ws --wsaddr 0.0.0.0 --wsport 8036 --wsorigins * 2>>/opt/coins/data/ethereum/backend/ethereum.log'
User=ethereum
Type=simple
Restart=on-failure
WorkingDirectory=/opt/coins/nodes/ethereum/eth
WorkingDirectory=/opt/coins/nodes/ethereum
# Resource limits
LimitNOFILE=500000