Skip to content

Commit

Permalink
WIP: hostname-vars: Ensure previous hostname envvars aren't overwritten
Browse files Browse the repository at this point in the history
Connects-to: #78
Change-type: patch
Signed-off-by: Heds Simons <[email protected]>
  • Loading branch information
Heds Simons committed Mar 14, 2019
1 parent a4b121f commit cab0c0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/configure-balena-host-envvars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ HOST_ENVVARS[BALENA_SENTRY_URL_HOST]=sentry
HOST_ENVVARS[BALENA_MONITOR_HOST]=monitor

# Go through the lists and fill in any missing envvars
#for index in $(seq 1 ${#HOST_ENVVARS[*]}); do
for VARNAME in "${!HOST_ENVVARS[@]}"; do
VARVALUE="${HOST_ENVVARS[$VARNAME]}"
if [[ ! -z "$VARVALUE" ]]; then
VARVALUE=${!VARNAME}
if [[ -z "$VARVALUE" ]]; then
# Only use BALENA_DEVICE_UUID if it actually exists, else just use the
# full passed in TLD
DEVICE=""
Expand Down

0 comments on commit cab0c0e

Please sign in to comment.