Skip to content
Snippets Groups Projects
Verified Commit afec86e2 authored by psy's avatar psy
Browse files

check for existence of key instead of value

parent c491d735
Branches
Tags v2.9.5
1 merge request!1feature: smtp server settings
...@@ -645,10 +645,10 @@ gitlab_rails['smtp_tls'] = {{ gitlab.smtp.tls|to_json }} ...@@ -645,10 +645,10 @@ gitlab_rails['smtp_tls'] = {{ gitlab.smtp.tls|to_json }}
###! Docs: http://api.rubyonrails.org/classes/ActionMailer/Base.html ###! Docs: http://api.rubyonrails.org/classes/ActionMailer/Base.html
gitlab_rails['smtp_openssl_verify_mode'] = '{{ gitlab.smtp.verify_ssl }}' gitlab_rails['smtp_openssl_verify_mode'] = '{{ gitlab.smtp.verify_ssl }}'
{% if gitlab.smtp.ca_path %} {% if 'ca_path' in gitlab.smtp %}
gitlab_rails['smtp_ca_path'] = "{{ gitlab.smtp.ca_path }}" gitlab_rails['smtp_ca_path'] = "{{ gitlab.smtp.ca_path }}"
{% endif %} {% endif %}
{% if gitlab.smtp.ca_file %} {% if 'ca_file' in gitlab.smtp %}
gitlab_rails['smtp_ca_file'] = "{{ gitlab.smtp.ca_file }}" gitlab_rails['smtp_ca_file'] = "{{ gitlab.smtp.ca_file }}"
{% endif %} {% endif %}
{% endif %} {% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment