From 04e9f45febd1abd8794a5aff688e153c72ccf526 Mon Sep 17 00:00:00 2001 From: nolash Date: Wed, 28 Apr 2021 19:24:33 +0200 Subject: [PATCH] Correct default token env vars in deployment step 2 --- apps/contract-migration/seed_cic_eth.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/contract-migration/seed_cic_eth.sh b/apps/contract-migration/seed_cic_eth.sh index 7795f176..5db1e428 100755 --- a/apps/contract-migration/seed_cic_eth.sh +++ b/apps/contract-migration/seed_cic_eth.sh @@ -13,11 +13,10 @@ DEV_PIP_EXTRA_INDEX_URL=${DEV_PIP_EXTRA_INDEX_URL:-https://pip.grassrootseconomi DEV_DATABASE_NAME_CIC_ETH=${DEV_DATABASE_NAME_CIC_ETH:-"cic-eth"} CIC_DATA_DIR=${CIC_DATA_DIR:-/tmp/cic} ETH_PASSPHRASE='' -DEV_TOKEN_TYPE=${DEV_TOKEN_TYPE:-giftable} -if [ $DEV_TOKEN_TYPE = 'giftable' ]; then - token_symbol='GFT' -else - token_symbol='SRF' +CIC_DEFAULT_TOKEN_SYMBOL=${CIC_DEFAULT_TOKEN_SYMBOL:-GFT} +if [[ $CIC_DEFAULT_TOKEN_SYMBOL != 'GFT' && $CIC_DEFAULT_TOKEN_SYMBOL != 'SRF' ]]; then + >&2 echo CIC_DEFAULT_TOKEN_SYMBOL must be one of [GFT,SRF], but was $CIC_DEFAULT_TOKEN_SYMBOL + exit 1 fi # Debug flag