瀏覽代碼

Update 00-mpm.conf.jinja

Change mpm.conf template for RedHat family systems.

The code currently written will always expand to true as a pillar.get() call will return None in case the pillar is non existing, which is also considered defined.
Fix this.
ixs-patch-1
Andreas Thienemann 2 年之前
父節點
當前提交
d0f3740c9e
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja

+ 1
- 1
apache/files/RedHat/conf.modules.d/00-mpm.conf.jinja 查看文件

@@ -4,7 +4,7 @@

{% set mpm_module = 'mpm_prefork' -%}
{% set mpm_param = salt['pillar.get']('apache:mod_mpm_prefork', {}) -%}
{% if pillar.get('apache:mod_mpm_worker') is defined -%}
{% if pillar.get('apache:mod_mpm_worker', None) -%}
{% set mpm_module = 'mpm_worker' -%}
{% set mpm_param = salt['pillar.get']('apache:mod_mpm_worker', {}) -%}
{% else -%}

Loading…
取消
儲存