Add -f -S flags for curl commands in installers (#12688)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>6.19.x
parent
d26e0f7d5c
commit
2eef956f62
|
|
@ -198,7 +198,7 @@ else
|
|||
elif curl ${CA_ARG} -o /dev/null --silent --head --fail $(echo ${AGENT_BINARIES_URI} | sed 's/-\${PREFIX}//g'); then
|
||||
curl ${CA_ARG} -o $(echo ${TARGET_AGENT_BINARIES_URI} | sed 's/\${PREFIX}/'${PREFIX}'/g' | sed 's/file:\/\///g') -s $(echo ${AGENT_BINARIES_URI} | sed 's/-\${PREFIX}//g')
|
||||
fi
|
||||
curl -s $(echo ${TARGET_AGENT_BINARIES_URI} | sed 's/\${PREFIX}/'${PREFIX}'/g') | tar xzf - -C ${CHE_DIR}
|
||||
curl -sSf $(echo ${TARGET_AGENT_BINARIES_URI} | sed 's/\${PREFIX}/'${PREFIX}'/g') | tar xzf - -C ${CHE_DIR}
|
||||
else
|
||||
CA_ARG=""
|
||||
if [ -f /tmp/che/secret/ca.crt ]; then
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ else
|
|||
elif curl ${CA_ARG} -o /dev/null --silent --head --fail $(echo ${AGENT_BINARIES_URI} | sed 's/-\${PREFIX}//g'); then
|
||||
curl ${CA_ARG} -o $(echo ${TARGET_AGENT_BINARIES_URI} | sed 's/\${PREFIX}/'${PREFIX}'/g' | sed 's/file:\/\///g') -s $(echo ${AGENT_BINARIES_URI} | sed 's/-\${PREFIX}//g')
|
||||
fi
|
||||
curl -s $(echo ${TARGET_AGENT_BINARIES_URI} | sed 's/\${PREFIX}/'${PREFIX}'/g') | tar xzf - -C ${CHE_DIR}
|
||||
curl -sSf $(echo ${TARGET_AGENT_BINARIES_URI} | sed 's/\${PREFIX}/'${PREFIX}'/g') | tar xzf - -C ${CHE_DIR}
|
||||
else
|
||||
CA_ARG=""
|
||||
if [ -f /tmp/che/secret/ca.crt ]; then
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ else
|
|||
CA_ARG="--cacert /tmp/che/secret/ca.crt"
|
||||
fi
|
||||
|
||||
curl -s ${CA_ARG} ${AGENT_BINARIES_URI} | tar xzf - -C ${CHE_DIR}/ws-agent
|
||||
curl -sSf ${CA_ARG} ${AGENT_BINARIES_URI} | tar xzf - -C ${CHE_DIR}/ws-agent
|
||||
else
|
||||
# replace https by http as wget may not be able to handle ssl
|
||||
AGENT_BINARIES_URI=$(echo ${AGENT_BINARIES_URI} | sed 's/https/http/g')
|
||||
|
|
|
|||
Loading…
Reference in New Issue