浏览代码

update-alternatives is only required for php-cli

tags/v0.34.0
kurt--- 7 年前
父节点
当前提交
e63b22c354
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. +11
    -0
      php/ng/cli/install.sls

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

正在加载...
取消
保存