Commit cb7dccfb authored by Martin Vala's avatar Martin Vala
Browse files

Fixed if statements for cp default config

parent 2fc19451
Pipeline #482680 passed with stage
in 48 seconds
...@@ -146,7 +146,12 @@ function eosDockerRun() { ...@@ -146,7 +146,12 @@ function eosDockerRun() {
chown 2:root $ED_EOS_VAR_DIR/log/eos/tx chown 2:root $ED_EOS_VAR_DIR/log/eos/tx
fi fi
$ED_DOCKER_CMD exec eos-$ED_NODE_TYPE mkdir -p /etc/eos-docker $ED_DOCKER_CMD exec eos-$ED_NODE_TYPE mkdir -p /etc/eos-docker
$ED_DOCKER_CMD cp $ED_CONFIG_FILE_DEFAULT eos-$ED_NODE_TYPE:$ED_CONFIG_FILE_DEFAULT || { ERROR "Poblem doing 'docker cp '$ED_CONFIG_FILE_DEFAULT' eos-'$ED_NODE_TYPE':'$ED_CONFIG_FILE_DEFAULT'"; exit 1; } if [[ $ED_NODE_TYPE == mgm* ]];then
$ED_DOCKER_CMD cp $ED_CONFIG_FILE_DEFAULT eos-$ED_NODE_TYPE:$ED_CONFIG_FILE_DEFAULT || { ERROR "Poblem doing 'docker cp '$ED_CONFIG_FILE_DEFAULT' eos-'$ED_NODE_TYPE':'$ED_CONFIG_FILE_DEFAULT'"; exit 1; }
fi
if [[ $ED_NODE_TYPE == fst* ]];then
$ED_DOCKER_CMD cp $ED_ROOT_DIR/eos-docker.cf.default eos-$ED_NODE_TYPE:$ED_CONFIG_FILE_DEFAULT || { ERROR "Poblem doing 'docker cp '$ED_ROOT_DIR/eos-docker.cf.default' eos-'$ED_NODE_TYPE':'$ED_CONFIG_FILE_DEFAULT'"; exit 1; }
fi
sleep 1 sleep 1
# Add LDAP user info when needed # Add LDAP user info when needed
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment