浏览代码

Merge pull request #142 from bbinet/fix-file-mode

Fix file mode for file.managed state
pull/144/head
Filip Pytloun 6 年前
父节点
当前提交
98b673bd15
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. +2
    -2
      README.rst
  2. +2
    -2
      linux/system/file.sls

+ 2
- 2
README.rst 查看文件

@@ -352,7 +352,7 @@ Ensure presence of file by specifying it's source:
source: http://example.com/test.txt
user: root
group: root
file_mode: 700
mode: 700
dir_mode: 700
encoding: utf-8
hash: <<md5 hash>>
@@ -371,7 +371,7 @@ Ensure presence of file by specifying it's contents:
line2
user: root
group: root
file_mode: 700
mode: 700
dir_mode: 700
encoding: utf-8
hash: <<md5 hash>>

+ 2
- 2
linux/system/file.sls 查看文件

@@ -17,8 +17,8 @@
- makedirs: {{ file.get('makedirs', 'True') }}
- user: {{ file.get('user', 'root') }}
- group: {{ file.get('group', 'root') }}
{%- if file.file_mode is defined %}
- file_mode: {{ file.file_mode }}
{%- if file.mode is defined %}
- mode: {{ file.mode }}
{%- endif %}
{%- if file.dir_mode is defined %}
- dir_mode: {{ file.dir_mode }}

正在加载...
取消
保存