Escape RUST_LOG configuration in remote-node.sh (#1489)

* Escape RUST_LOG configuration in remote-node.sh

- If it was set to #, it was causing other parameters to be commented out

* escape other variables as well

* disabled shell check

* Fix shellcheck error
This commit is contained in:
Pankaj Garg 2018-10-13 13:35:54 -07:00 committed by GitHub
parent 2d0f07091d
commit 9fc30f6db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -43,12 +43,13 @@ snap)
net/scripts/rsync-retry.sh -vPrc "$entrypointIp:~/solana/solana.snap" .
sudo snap install solana.snap --devmode --dangerous
# shellcheck disable=SC2089
commonNodeConfig="\
leader-ip=$entrypointIp \
leader-ip=\"$entrypointIp\" \
default-metrics-rate=1 \
metrics-config=$SOLANA_METRICS_CONFIG \
rust-log=$RUST_LOG \
setup-args=$setupArgs \
metrics-config=\"$SOLANA_METRICS_CONFIG\" \
rust-log=\"$RUST_LOG\" \
setup-args=\"$setupArgs\" \
"
if [[ -e /dev/nvidia0 ]]; then
@ -68,7 +69,7 @@ snap)
logger "$logmarker"
# shellcheck disable=SC2086 # Don't want to double quote "$nodeConfig"
sudo snap set solana $nodeConfig
sudo snap set solana "$nodeConfig"
snap info solana
sudo snap get solana
echo Slight delay to get more syslog output