瀏覽代碼

Keep sources.list even if remove_sources_list set

Deleting the file causes "could not open file '/etc/apt/sources.list'"
warnings. Better to keep it around but just remove its contents.
tags/v0.7.0
Adam Bolte 8 年之前
父節點
當前提交
f09143a79a
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      apt/repositories.sls

+ 3
- 3
apt/repositories.sls 查看文件

@@ -11,12 +11,12 @@ debian-archive-keyring:

/etc/apt/sources.list:
file.managed:
{%- if remove_sources_list %}
- contents: ''
{%- else %}
- mode: '0644'
- user: root
- group: root
{% if remove_sources_list %}
- contents: ''
- contents_newline: False
{% endif %}

{{ sources_list_dir }}:

Loading…
取消
儲存