diff --git a/php/ng/cli/install.sls b/php/ng/cli/install.sls index c52a6ef..85ddf78 100644 --- a/php/ng/cli/install.sls +++ b/php/ng/cli/install.sls @@ -1,2 +1,13 @@ {% set state = 'cli' %} {% 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 }})