Skip to content

Commit

Permalink
Merge pull request #4004 from LiilyZhang/zhangl/Issue3994-2
Browse files Browse the repository at this point in the history
Issue #3994 (part2) - Agent-install.sh: should support im…
  • Loading branch information
LiilyZhang authored Feb 8, 2024
2 parents dacac44 + de840ab commit 04ccc1a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions agent-install/agent-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,6 @@ function get_all_variables() {
# Next get config file values (cmd line has already been parsed), so get_variable can apply the whole precedence order
get_variable INPUT_FILE_PATH '.'
adjust_input_file_path
if [[ !is_cluster && $INPUT_FILE_PATH == remote:* ]]; then
log_fatal 1 "\$INPUT_FILE_PATH cannot set to 'remote:<version>' if \$AGENT_DEPLOY_TYPE is 'device'"
fi

get_variable AGENT_CFG_FILE "$(get_cfg_file_default)"

Expand Down Expand Up @@ -1152,6 +1149,10 @@ function get_all_variables() {
get_variable AGENT_DEPLOY_TYPE 'device'
get_variable AGENT_WAIT_MAX_SECONDS '30'

if ! is_cluster && [[ $INPUT_FILE_PATH == remote:* ]]; then
log_fatal 1 "\$INPUT_FILE_PATH cannot set to 'remote:<version>' if \$AGENT_DEPLOY_TYPE is 'device'"
fi

if is_device; then
get_variable NODE_ID_MAPPING_FILE 'node-id-mapping.csv'
get_variable PKG_APT_KEY
Expand Down

0 comments on commit 04ccc1a

Please sign in to comment.