Skip to content

Commit

Permalink
Prevent Debian package from recreating a file
Browse files Browse the repository at this point in the history
  • Loading branch information
dseomn committed Oct 24, 2023
1 parent f485440 commit ec57b50
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions salt/file/mail/web/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,16 @@ roundcube database migrations:
- {{ apache_httpd.config_dir }}/sites-enabled is clean
- watch_in:
- apache_httpd_running
{{ apache_httpd.config_dir }}/conf-enabled/roundcube.conf:
file.managed:
- contents: |
# The Debian package re-creates a symlink at this path on every upgrade.
# This file exists to prevent that from happening.
- follow_symlinks: false
- require:
- {{ apache_httpd.config_dir }}/conf-enabled exists
- require_in:
- {{ apache_httpd.config_dir }}/conf-enabled is clean
- watch_in:
- apache_httpd_running

0 comments on commit ec57b50

Please sign in to comment.