浏览代码

Fixed "no service named nginx" chkconfig error.

chkconfig was attempting to remove /etc/init.d/nginx when it did not exist.
susefix
CorwinTanner 10 年前
父节点
当前提交
51844f2820
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      nginx/package.sls

+ 1
- 1
nginx/package.sls 查看文件

@@ -45,7 +45,7 @@ nginx-old-init-disable:
- name: {{ nginx.old_init_disable }}
- require{{ _in }}:
- module: nginx-old-init
- unless: [ ! -f /etc/init.d/nginx ]
- onlyif: [ -f /etc/init.d/nginx ]
{% endif %}

{% if grains.get('os_family') == 'Debian' %}

正在加载...
取消
保存