Skip to content

Commit

Permalink
Populate real file instead of symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Oct 17, 2024
1 parent 44c23ae commit 53d0bf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
- name: Template wordfence-waf.php
template:
src: "../templates/wordfence-waf.php.j2"
dest: "{{ deploy_helper.shared_path }}/wordfence-waf.php"
dest: "{{ deploy_helper.new_release_path }}/web/wp/wordfence-waf.php"
6 changes: 3 additions & 3 deletions templates/wordfence-waf.php.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.

if (file_exists('{{ deploy_helper.current_path }}/web/app/plugins/wordfence/waf/bootstrap.php')) {
define('WFWAF_LOG_PATH', '{{ deploy_helper.current_path }}/../../wflogs/');
include_once '{{ deploy_helper.current_path }}/web/app/plugins/wordfence/waf/bootstrap.php';
if (file_exists('{{ deploy_helper.new_release_path }}/web/app/plugins/wordfence/waf/bootstrap.php')) {
define('WFWAF_LOG_PATH', '{{ deploy_helper.new_release_path }}/../../wflogs/');
include_once '{{ deploy_helper.new_release_path }}/web/app/plugins/wordfence/waf/bootstrap.php';
}

0 comments on commit 53d0bf8

Please sign in to comment.