update-alternatives is only required for php-cli
This commit is contained in:
parent
2e2ef4e529
commit
e63b22c354
@ -1,2 +1,13 @@
|
|||||||
{% set state = 'cli' %}
|
{% set state = 'cli' %}
|
||||||
{% include "php/ng/installed.jinja" %}
|
{% include "php/ng/installed.jinja" %}
|
||||||
|
|
||||||
|
|
||||||
|
php_{{ phpng_version }}_link:
|
||||||
|
alternatives.set:
|
||||||
|
- name: php
|
||||||
|
- path: /usr/bin/php{{ phpng_version }}
|
||||||
|
- require_in:
|
||||||
|
- pkg: php_install_{{ state }}
|
||||||
|
- onlyif:
|
||||||
|
- which php
|
||||||
|
- test {{ current_php }} != $(which php{{ phpng_version }})
|
||||||
|
Loading…
Reference in New Issue
Block a user