Pārlūkot izejas kodu

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.
master
Adam Bolte pirms 8 gadiem
vecāks
revīzija
f09143a79a
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. +3
    -3
      apt/repositories.sls

+ 3
- 3
apt/repositories.sls Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt