Explorar el Código

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

changes/04/696204/1
Zuul hace 2 meses
padre
commit
b508448958
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      magnum/drivers/common/templates/kubernetes/fragments/enable-cert-api-manager.sh

+ 2
- 2
magnum/drivers/common/templates/kubernetes/fragments/enable-cert-api-manager.sh Ver fichero

@@ -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

Cargando…
Cancelar
Guardar