fix: exec start command in bor service

This commit is contained in:
Jaynti Kanani 2020-05-27 23:54:28 +05:30
parent 48c93af208
commit 883aa5159f
No known key found for this signature in database
GPG key ID: 4396982C976BAE5E

View file

@ -39,7 +39,7 @@ jobs:
[Service]
WorkingDirectory=/etc/bor/
EnvironmentFile=/etc/bor/metadata
ExecStart=/etc/bor/start.sh ${NETWORK_ID} ${VALIDATOR_ADDRESS} ${NODE_TYPE}
ExecStart=bash /etc/bor/start.sh ${NETWORK_ID} ${VALIDATOR_ADDRESS} ${NODE_TYPE}
Type=simple
User=root
EOF
@ -57,6 +57,8 @@ jobs:
EOF
cat > start.sh <<- "EOF"
#!/usr/bin/env bash
NETWORK_ID=$1
VALIDATOR_ADDRESS=$2
NODE_TYPE=$3