Browse Source

ensure php5 module is enabled on openSUSE / SLE

master
Frederic Crozat 8 years ago
parent
commit
af0c009f7b
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      apache/mod_php5.sls

+ 8
- 0
apache/mod_php5.sls View File

@@ -33,3 +33,11 @@ a2enmod php5:
{% endif %}

{% endif %}

{% if grains['os_family']=="Suse" %}
/etc/sysconfig/apache2:
file.replace:
- unless: grep '^APACHE_MODULES=.*php5' /etc/sysconfig/apache2
- pattern: '^APACHE_MODULES=(.*)"'
- repl: 'APACHE_MODULES=\1 php5"'
{% endif %}

Loading…
Cancel
Save