From 0d090eff3c9a6702a2b4c6f1bd310e6869eb846e Mon Sep 17 00:00:00 2001 From: kompotkot Date: Fri, 21 Jan 2022 14:22:43 +0000 Subject: [PATCH] Checkenv cant find root home --- nodes/deploy/ethereum/deploy.bash | 9 ++++++--- nodes/deploy/polygon/deploy.bash | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/nodes/deploy/ethereum/deploy.bash b/nodes/deploy/ethereum/deploy.bash index 45d448f2..03d8e17d 100755 --- a/nodes/deploy/ethereum/deploy.bash +++ b/nodes/deploy/ethereum/deploy.bash @@ -37,6 +37,11 @@ cd "${APP_NODES_DIR}/server" HOME=/root /usr/local/go/bin/go build -o "${APP_NODES_DIR}/server/nodestatus" "${APP_NODES_DIR}/server/main.go" cd "${EXEC_DIR}" +echo +echo +echo -e "${PREFIX_INFO} Create secrets directory" +mkdir -p "${SECRETS_DIR}" + echo echo echo -e "${PREFIX_INFO} Install checkenv" @@ -45,9 +50,7 @@ HOME=/root /usr/local/go/bin/go install github.com/bugout-dev/checkenv@latest echo echo echo -e "${PREFIX_INFO} Retrieving deployment parameters" -mkdir -p "${SECRETS_DIR}" -> "${PARAMETERS_ENV_PATH}" -HOME=/root AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION}" $HOME/go/bin/checkenv show aws_ssm+Product:moonstream,Node:true >> "${PARAMETERS_ENV_PATH}" +AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION}" /root/go/bin/checkenv show aws_ssm+Product:moonstream,Node:true > "${PARAMETERS_ENV_PATH}" echo echo diff --git a/nodes/deploy/polygon/deploy.bash b/nodes/deploy/polygon/deploy.bash index 6128264e..17230994 100755 --- a/nodes/deploy/polygon/deploy.bash +++ b/nodes/deploy/polygon/deploy.bash @@ -41,6 +41,11 @@ cd "${APP_NODES_DIR}/server" HOME=/root /usr/local/go/bin/go build -o "${APP_NODES_DIR}/server/nodestatus" "${APP_NODES_DIR}/server/main.go" cd "${EXEC_DIR}" +echo +echo +echo -e "${PREFIX_INFO} Create secrets directory" +mkdir -p "${SECRETS_DIR}" + echo echo echo -e "${PREFIX_INFO} Install checkenv" @@ -49,9 +54,7 @@ HOME=/root /usr/local/go/bin/go install github.com/bugout-dev/checkenv@latest echo echo echo -e "${PREFIX_INFO} Retrieving deployment parameters" -mkdir -p "${SECRETS_DIR}" -> "${PARAMETERS_ENV_PATH}" -HOME=/root AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION}" $HOME/go/bin/checkenv show aws_ssm+Product:moonstream,Node:true >> "${PARAMETERS_ENV_PATH}" +AWS_DEFAULT_REGION="${AWS_DEFAULT_REGION}" /root/go/bin/checkenv show aws_ssm+Product:moonstream,Node:true > "${PARAMETERS_ENV_PATH}" echo echo