Browse Source

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

Move state php_{{ phpng_version }}_link to cli/install.sls
tags/v0.34.0
Niels Abspoel 7 years ago
parent
commit
ec66ff202f
2 changed files with 11 additions and 10 deletions
  1. +11
    -0
      php/ng/cli/install.sls
  2. +0
    -10
      php/ng/installed.jinja

+ 11
- 0
php/ng/cli/install.sls View File

{% 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 }})

+ 0
- 10
php/ng/installed.jinja View File

- onchanges: - onchanges:
- pkgrepo: php_ppa_{{ state }} - 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 %}
{% endif %} {% endif %}



Loading…
Cancel
Save