Skip to content

Commit

Permalink
feat(php-fpm): restart php-fpm after an extension install
Browse files Browse the repository at this point in the history
  • Loading branch information
SMillerDev authored and pprkut committed Mar 19, 2021
1 parent e762a51 commit a3bd46c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions php/installed.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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("/", "-") }}:
Expand Down

0 comments on commit a3bd46c

Please sign in to comment.