]> git.openstreetmap.org Git - chef.git/commitdiff
wordpress: install wordpress cli
authorGrant Slater <github@firefishy.com>
Tue, 14 Mar 2023 13:26:45 +0000 (13:26 +0000)
committerGrant Slater <github@firefishy.com>
Tue, 14 Mar 2023 13:26:45 +0000 (13:26 +0000)
cookbooks/wordpress/recipes/default.rb

index 73f6f353e4303f32974dcdba471bfa66e99c04fa..1cda2915cb2fa35d39f0a1295766534ba61f22f4 100644 (file)
@@ -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