From 0300b15a6c117313dfe1066952fcaface66cc43e Mon Sep 17 00:00:00 2001 From: platfowner Date: Thu, 5 Sep 2024 21:09:40 +0900 Subject: [PATCH] Do not allow tracker job starting in onprem deploy scripts --- deploy_blockchain_genesis_onprem.sh | 5 +++++ deploy_blockchain_incremental_onprem.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/deploy_blockchain_genesis_onprem.sh b/deploy_blockchain_genesis_onprem.sh index 08c7692ef..b3b8a76eb 100644 --- a/deploy_blockchain_genesis_onprem.sh +++ b/deploy_blockchain_genesis_onprem.sh @@ -92,6 +92,11 @@ if [[ $SETUP_OPTION = "--setup" ]] && [[ ! $KEEP_CODE_OPTION = "--no-keep-code" exit fi +if [[ $PARENT_NODE_INDEX_BEGIN -lt 0 ]]; then + printf "Please use deploy_blockchain_incremental_gcp.sh instead for the tracker job.\n" + exit +fi + printf "SETUP_OPTION=$SETUP_OPTION\n" printf "ACCOUNT_INJECTION_OPTION=$ACCOUNT_INJECTION_OPTION\n" printf "KEEP_CODE_OPTION=$KEEP_CODE_OPTION\n" diff --git a/deploy_blockchain_incremental_onprem.sh b/deploy_blockchain_incremental_onprem.sh index 5409ffbe2..1f1910719 100644 --- a/deploy_blockchain_incremental_onprem.sh +++ b/deploy_blockchain_incremental_onprem.sh @@ -91,6 +91,11 @@ if [[ $SETUP_OPTION = "--setup" ]] && [[ ! $KEEP_CODE_OPTION = "--no-keep-code" exit fi +if [[ $PARENT_NODE_INDEX_BEGIN -lt 0 ]]; then + printf "Please use deploy_blockchain_incremental_gcp.sh instead for the tracker job.\n" + exit +fi + printf "SETUP_OPTION=$SETUP_OPTION\n" printf "ACCOUNT_INJECTION_OPTION=$ACCOUNT_INJECTION_OPTION\n" printf "KEEP_CODE_OPTION=$KEEP_CODE_OPTION\n"