]> git.openstreetmap.org Git - chef.git/commitdiff
wordpress: remove custom wp-fail2ban enable
authorGrant Slater <github@firefishy.com>
Wed, 28 Jun 2023 13:30:12 +0000 (14:30 +0100)
committerGrant Slater <github@firefishy.com>
Wed, 28 Jun 2023 13:30:12 +0000 (14:30 +0100)
cookbooks/wordpress/resources/site.rb

index cebd7b26f2894ccc315b21fb8bc0f510b3ba108a..6fdaeb4f8032ea3669975cb3d21cefe6d64dec20 100644 (file)
@@ -189,22 +189,6 @@ action :create do
     reload_apache false
   end
 
     reload_apache false
   end
 
-  script "#{site_directory}/wp-content/plugins/wp-fail2ban" do
-    action :nothing
-    interpreter "php"
-    cwd site_directory
-    user "wordpress"
-    code <<-WP_FAIL2BAN
-    <?php
-    @include "wp-config.php";
-    @include_once "wp-includes/functions.php";
-    @include_once "wp-admin/includes/plugin.php";
-    activate_plugin("wp-fail2ban/wp-fail2ban.php", '', false, false);
-    ?>
-    WP_FAIL2BAN
-    subscribes :run, "wordpress_plugin[wp-fail2ban]"
-  end
-
   wordpress_plugin "wp-2fa" do
     site new_resource.site
     reload_apache false
   wordpress_plugin "wp-2fa" do
     site new_resource.site
     reload_apache false