Merge "Fix if condition to test for var==true"

This commit is contained in:
Zuul 2019-11-22 12:50:22 +00:00 committed by Gerrit Code Review
commit b508448958
1 changed files with 2 additions and 2 deletions

View File

@ -5,10 +5,10 @@ printf "Starting to run ${step}\n"
. /etc/sysconfig/heat-params
if [ "$(echo $CERT_MANAGER_API | tr '[:upper:]' '[:lower:]')" != "false" ]; then
if [ "$(echo "${CERT_MANAGER_API}" | tr '[:upper:]' '[:lower:]')" = "true" ]; then
cert_dir=/etc/kubernetes/certs
echo -e "$CA_KEY" > ${cert_dir}/ca.key
echo -e "${CA_KEY}" > ${cert_dir}/ca.key
chown kube.kube ${cert_dir}/ca.key
chmod 400 ${cert_dir}/ca.key