From 95fcd6112c03ecbcb1a463a657850166ed4477a7 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 14 Mar 2023 13:26:45 +0000 Subject: [PATCH] wordpress: install wordpress cli --- cookbooks/wordpress/recipes/default.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cookbooks/wordpress/recipes/default.rb b/cookbooks/wordpress/recipes/default.rb index 73f6f353e..1cda2915c 100644 --- a/cookbooks/wordpress/recipes/default.rb +++ b/cookbooks/wordpress/recipes/default.rb @@ -43,3 +43,16 @@ fail2ban_jail "wordpress" do ports [80, 443] maxretry 6 end + +directory "/opt/wp-cli" do + owner "root" + group "root" + mode "755" +end + +remote_file "/opt/wp-cli/wp" do + source "https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar" + owner "root" + group "root" + mode "755" +end -- 2.39.5