소스 검색

feat(php-fpm): restart php-fpm after an extension install

pull/225/head
Sean Molenaar 6 년 전
부모
커밋
a3bd46ca54
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. +9
    -0
      php/installed.jinja

+ 9
- 0
php/installed.jinja 파일 보기

@@ -109,6 +109,15 @@ php_install_{{ state }}:
- enablerepo: {{ enable_php_repo }}
{% endif %}

{% set service = salt['pillar.get']('php:lookup:fpm:service', 'php-fpm') %}
{% if salt['service.status'](service, False) %}
{{ service }}_restart_{{ state }}:
service.running:
- name: {{ service }}
- watch:
- pkg: php_install_{{ state }}
{% endif %}

{% for pkg in specials %}

php_install_{{ state }}_{{ pkg.get('name') | replace("/", "-") }}:

Loading…
취소
저장