瀏覽代碼

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

Move state php_{{ phpng_version }}_link to cli/install.sls
tags/v0.34.0
Niels Abspoel 7 年之前
父節點
當前提交
ec66ff202f
共有 2 個檔案被更改,包括 11 行新增10 行删除
  1. +11
    -0
      php/ng/cli/install.sls
  2. +0
    -10
      php/ng/installed.jinja

+ 11
- 0
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 }})

+ 0
- 10
php/ng/installed.jinja 查看文件

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


Loading…
取消
儲存