diff --git a/templates/get_cert.sh.j2 b/templates/get_cert.sh.j2 index cc099db..a87e9ec 100644 --- a/templates/get_cert.sh.j2 +++ b/templates/get_cert.sh.j2 @@ -6,7 +6,7 @@ {% if ipa_getcert_nss %} nss_db_path="{{ ipahosts.nss_db_dir | default(ipa_getcert_nss_default_location) }}" -if [ ! -d "${nss_db_path}" && ! -L "${nss_db_path}" ]; then +if [ ! -d "${nss_db_path}" ] && [ ! -L "${nss_db_path}" ]; then mkdir -p "${nss_db_path}" fi {% endif %}