Skip to content

Commit

Permalink
Remove client.keys
Browse files Browse the repository at this point in the history
An empty client.keys was overwriting /var/ossec/etc/client.keys with an empty one, breaking the registration between client and server. Removing the empty client.keys prior to building will ensure the keys are preserved during an upgrade.
  • Loading branch information
emkll committed Oct 2, 2018
1 parent 6a562fd commit 27ac0f0
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -84,6 +84,11 @@
- "{{ ossec_build_dir }}"
- "{{ ossec_build_dir }}/var"

- name: Remove client.keys to avoid overwriting existing client.keys
file:
state: absent
dest: /var/ossec/etc/client.keys

- name: Copy /var/ossec/ to OSSEC build directory.
command: cp -R /var/ossec {{ ossec_build_dir }}/var/

Expand Down

0 comments on commit 27ac0f0

Please sign in to comment.