@@ -92,19 +92,18 @@ cat << EOF > /usr/local/bin/env
92
92
#!/usr/bin/env bash
93
93
94
94
# Docker run ENV vars
95
- CARDANO_CONFIG="$CARDANO_CONFIG "
96
- CARDANO_TOPOLOGY="$CARDANO_TOPOLOGY "
97
95
CARDANO_BIND_ADDR="$CARDANO_BIND_ADDR "
98
- CARDANO_PORT=$CARDANO_PORT
96
+ CARDANO_BLOCK_PRODUCER=$CARDANO_BLOCK_PRODUCER
97
+ CARDANO_CONFIG="$CARDANO_CONFIG "
99
98
CARDANO_DATABASE_PATH="$CARDANO_DATABASE_PATH "
100
- CARDANO_SOCKET_PATH="$CARDANO_SOCKET_PATH "
101
99
CARDANO_LOG_DIR="$CARDANO_LOG_DIR "
100
+ CARDANO_PORT=$CARDANO_PORT
101
+ CARDANO_SOCKET_PATH="$CARDANO_SOCKET_PATH "
102
+ CARDANO_TOPOLOGY="$CARDANO_TOPOLOGY "
102
103
103
104
CARDANO_PUBLIC_IP="$CARDANO_PUBLIC_IP "
104
105
CARDANO_CUSTOM_PEERS="$CARDANO_CUSTOM_PEERS "
105
106
106
- CARDANO_BLOCK_PRODUCER=$CARDANO_BLOCK_PRODUCER
107
-
108
107
# Mapping for topologyUpdater
109
108
CNODE_HOSTNAME="$CARDANO_PUBLIC_IP "
110
109
CNODE_PORT=$CARDANO_PORT
@@ -135,7 +134,7 @@ runRelayNode () {
135
134
" --port" " $CARDANO_PORT "
136
135
)
137
136
138
- effopts+=(" ${options [@]} " )
137
+ effopts+=(" ${filteredOpts [@]} " )
139
138
140
139
echo " cardano-node run ${effopts[*]} "
141
140
exec /usr/local/bin/cardano-node run " ${effopts[@]} "
@@ -159,7 +158,7 @@ runBlockProducerNode () {
159
158
" --shelley-operational-certificate" " $CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE "
160
159
)
161
160
162
- effopts+=(" ${options [@]} " )
161
+ effopts+=(" ${filteredOpts [@]} " )
163
162
164
163
echo " cardano-node run ${effopts[*]} "
165
164
exec /usr/local/bin/cardano-node run " ${effopts[@]} "
@@ -169,7 +168,6 @@ runBlockProducerNode () {
169
168
shift
170
169
171
170
# Override default values with explicit options
172
-
173
171
options=(" $@ " )
174
172
175
173
for i in " ${! options[@]} "
199
197
fi
200
198
done
201
199
200
+ # Filter blank args from match removal above
201
+ filteredOpts=(); for arg in " ${options[@]} " ; do [[ $arg ]] && filteredOpts+=(" $arg " ); done
202
+
202
203
printRunEnv
203
204
writeRootEnv
204
205
0 commit comments