Skip to content

Commit

Permalink
[change] Set default site to empty instead of removing it
Browse files Browse the repository at this point in the history
This should avoid the default site to be overridden
when upgrading the Freeradius package, which can cause
the openwisp site to break.
  • Loading branch information
nemesifier committed Aug 27, 2024
1 parent 93687ff commit 58f54fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tasks/freeradius.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@
group: freerad

- name: Remove default site
file:
# Leave empty to ensure upgrades to freeradius
# will not overwrite it
copy:
content: "# Empty, Generated by Ansible OpenWISP\n\n"
dest: "{{ item }}"
state: absent
with_items:
- "{{ freeradius_sites_enabled_dir }}/default"

Expand Down

0 comments on commit 58f54fc

Please sign in to comment.