瀏覽代碼

Fix wsgi.conf uncomment for RedHat based OS

tags/v0.37.4
Oleksandr Porunov 7 年之前
父節點
當前提交
c28a1097e3
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      apache/mod_wsgi.sls

+ 2
- 1
apache/mod_wsgi.sls 查看文件

@@ -9,10 +9,11 @@ mod_wsgi:
- require:
- pkg: apache

{% if grains.get('os_family') == 'RedHat' and salt['file.file_exists']('/etc/httpd/conf.d/wsgi.conf') %}
{% if grains.get('os_family') == 'RedHat' %}
/etc/httpd/conf.d/wsgi.conf:
file.uncomment:
- regex: LoadModule
- onlyif: test -f /etc/httpd/conf.d/wsgi.conf
- require:
- pkg: mod_wsgi
{% endif %}

Loading…
取消
儲存