Skip to content

Commit

Permalink
specify path to plugins directory
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Nov 6, 2024
1 parent cbb7219 commit fbf1c0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
project_plugins_path: "{{ project.plugins_path | default('app/plugins') }}"
4 changes: 2 additions & 2 deletions templates/wordfence-waf.php.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
// Before removing this file, please verify the PHP ini setting `auto_prepend_file` does not point to this.
if (file_exists('{{ deploy_helper.new_release_path }}/{{ project_public_path }}/{{ project_upload_path }}/../plugins/wordfence/waf/bootstrap.php')) {
if (file_exists('{{ deploy_helper.new_release_path }}/{{ project_public_path }}/{{ project_plugins_path }}/wordfence/waf/bootstrap.php')) {
if (! defined('WFWAF_LOG_PATH')) {
define('WFWAF_LOG_PATH', '{{ deploy_helper.new_release_path }}/../../wflogs/');
}
include_once '{{ deploy_helper.new_release_path }}/{{ project_public_path }}/{{ project_upload_path }}/../plugins/wordfence/waf/bootstrap.php';
include_once '{{ deploy_helper.new_release_path }}/{{ project_public_path }}/{{ project_plugins_path }}/wordfence/waf/bootstrap.php';
}

0 comments on commit fbf1c0b

Please sign in to comment.