瀏覽代碼

Add mod_xsenfile (Debian)

tags/v0.37.4
kadogo 8 年之前
父節點
當前提交
7495b5fdd8
共有 1 個檔案被更改,包括 24 行新增0 行删除
  1. +24
    -0
      apache/mod_xsendfile.sls

+ 24
- 0
apache/mod_xsendfile.sls 查看文件

@@ -0,0 +1,24 @@
{% from "apache/map.jinja" import apache with context %}

include:
- apache

mod-xsendfile:
pkg.installed:
- name: {{ apache.mod_xsendfile }}
- order: 180
- require:
- pkg: apache

{% if grains['os_family']=="Debian" %}
a2enmod xsendfile:
cmd.run:
- order: 225
- unless: ls /etc/apache2/mods-enabled/xsendfile.load
- require:
- pkg: mod-xsendfile
- watch_in:
- module: apache-restart

{% endif %}


Loading…
取消
儲存