From 010a91522a14df62a2eb0566711b83af3bd74364 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 7 Aug 2023 15:05:39 +0100 Subject: [PATCH] wordpress: bring site url under chef control --- cookbooks/wordpress/resources/site.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbooks/wordpress/resources/site.rb b/cookbooks/wordpress/resources/site.rb index b29f95f3f..52bba4ce5 100644 --- a/cookbooks/wordpress/resources/site.rb +++ b/cookbooks/wordpress/resources/site.rb @@ -101,6 +101,8 @@ action :create do line += "/**\r\n" line += " * Don't allow file editing.\r\n" line += " */\r\n" + line += "define( 'WP_HOME', 'https://#{new_resource.site}');\r\n" + line += "define( 'WP_SITEURL', 'https://#{new_resource.site}');\r\n" line += "define( 'DISALLOW_FILE_EDIT', true);\r\n" line += "define( 'DISALLOW_FILE_MODS', true);\r\n" line += "define( 'AUTOMATIC_UPDATER_DISABLED', true);\r\n" -- 2.43.2