Merge pull request #129 from kurt---/master

Move state php_{{ phpng_version }}_link to cli/install.sls
This commit is contained in:
Niels Abspoel 2017-05-05 21:00:36 +02:00 committed by GitHub
commit ec66ff202f
2 changed files with 11 additions and 10 deletions

View File

@ -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 }})

View File

@ -47,16 +47,6 @@ php_ppa_{{ state }}:
- onchanges:
- pkgrepo: php_ppa_{{ state }}
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 }})
{% endif %}
{% endif %}