mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 14:33:52 +00:00
fix: make start.sh executable
This commit is contained in:
parent
c502bceb13
commit
1f6fd6de90
1 changed files with 9 additions and 10 deletions
19
.github/workflows/linuxpackage.yml
vendored
19
.github/workflows/linuxpackage.yml
vendored
|
|
@ -39,7 +39,8 @@ jobs:
|
||||||
[Service]
|
[Service]
|
||||||
WorkingDirectory=/etc/bor/
|
WorkingDirectory=/etc/bor/
|
||||||
EnvironmentFile=/etc/bor/metadata
|
EnvironmentFile=/etc/bor/metadata
|
||||||
ExecStart=bash /etc/bor/start.sh ${NETWORK_ID} ${VALIDATOR_ADDRESS} ${NODE_TYPE}
|
ExecStartPre=/bin/chmod +x /etc/bor/start.sh
|
||||||
|
ExecStart=/bin/bash /etc/bor/start.sh ${NETWORK_ID} ${VALIDATOR_ADDRESS} ${NODE_TYPE}
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
EOF
|
EOF
|
||||||
|
|
@ -57,7 +58,7 @@ jobs:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > start.sh <<- "EOF"
|
cat > start.sh <<- "EOF"
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
NETWORK_ID=$1
|
NETWORK_ID=$1
|
||||||
VALIDATOR_ADDRESS=$2
|
VALIDATOR_ADDRESS=$2
|
||||||
|
|
@ -65,11 +66,10 @@ jobs:
|
||||||
|
|
||||||
DATA_DIR=/etc/bor/dataDir
|
DATA_DIR=/etc/bor/dataDir
|
||||||
|
|
||||||
args="/usr/bin/bor --datadir $DATA_DIR --port '30303' --rpc --rpcaddr '0.0.0.0' --rpcvhosts '*' --rpccorsdomain '*' --rpcport '8545' --ipcpath /etc/bor/bor.ipc --rpcapi 'db,eth,net,web3,txpool,bor' --networkid $NETWORK_ID --miner.gaslimit '20000000' --txpool.nolocals --txpool.accountslots '128' --txpool.globalslots '20000' --txpool.lifetime '0h16m0s'"
|
args="/usr/bin/bor --datadir $DATA_DIR --port '30303' --rpc --rpcaddr '0.0.0.0' --rpcvhosts '*' --rpccorsdomain '*' --rpcport '8545' --ipcpath /etc/bor/bor.ipc --rpcapi 'db,eth,net,web3,txpool,bor' --networkid $NETWORK_ID --miner.gaslimit '20000000' --txpool.nolocals --txpool.accountslots '128' --txpool.globalslots '20000' --txpool.lifetime '0h16m0s' "
|
||||||
|
|
||||||
if [[ $NODE_TYPE == 'validator' ]]; then
|
if [[ $NODE_TYPE == 'validator' ]]; then
|
||||||
args+="
|
args+="--keystore $DATA_DIR/keystore \
|
||||||
--keystore $DATA_DIR/keystore \
|
|
||||||
--unlock $VALIDATOR_ADDRESS \
|
--unlock $VALIDATOR_ADDRESS \
|
||||||
--password $DATA_DIR/password.txt \
|
--password $DATA_DIR/password.txt \
|
||||||
--allow-insecure-unlock \
|
--allow-insecure-unlock \
|
||||||
|
|
@ -79,14 +79,12 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $NODE_TYPE == 'sentry' ]]; then
|
if [[ $NODE_TYPE == 'sentry' ]]; then
|
||||||
args+="
|
args+="--maxpeers 200
|
||||||
--maxpeers 200
|
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $NODE_TYPE == 'validator-without-sentry' ]]; then
|
if [[ $NODE_TYPE == 'validator-without-sentry' ]]; then
|
||||||
args+="
|
args+="--keystore $DATA_DIR/keystore \
|
||||||
--keystore $DATA_DIR/keystore \
|
|
||||||
--unlock $VALIDATOR_ADDRESS \
|
--unlock $VALIDATOR_ADDRESS \
|
||||||
--password $DATA_DIR/password.txt \
|
--password $DATA_DIR/password.txt \
|
||||||
--allow-insecure-unlock \
|
--allow-insecure-unlock \
|
||||||
|
|
@ -102,7 +100,8 @@ jobs:
|
||||||
--after-install after_install.sh \
|
--after-install after_install.sh \
|
||||||
bor.service=/etc/systemd/system/ \
|
bor.service=/etc/systemd/system/ \
|
||||||
build/bin/bor=/usr/bin/ \
|
build/bin/bor=/usr/bin/ \
|
||||||
metadata=/etc/bor/
|
metadata=/etc/bor/ \
|
||||||
|
start.sh=/etc/bor/
|
||||||
|
|
||||||
mkdir packages-v${{ env.RELEASE_VERSION }}
|
mkdir packages-v${{ env.RELEASE_VERSION }}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue