Browse Source

Fix update-motd for debian

pull/123/head
Filip Pytloun 7 years ago
parent
commit
8b5af7cea1
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      linux/system/motd.sls

+ 4
- 2
linux/system/motd.sls View File



{%- else %} {%- else %}


{%- if grains.os == 'Ubuntu' %}
package_update_motd: package_update_motd:
pkg.installed: pkg.installed:
- name: update-motd - name: update-motd
- require_in:
- file: /etc/update-motd.d
{%- endif %}


/etc/update-motd.d: /etc/update-motd.d:
file.directory: file.directory:
- clean: true - clean: true
- require:
- pkg: package_update_motd


{%- for motd in system.motd %} {%- for motd in system.motd %}
{%- set motd_index = loop.index %} {%- set motd_index = loop.index %}

Loading…
Cancel
Save