From: Grant Slater Date: Mon, 7 Aug 2023 14:05:39 +0000 (+0100) Subject: wordpress: bring site url under chef control X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/010a91522a14df62a2eb0566711b83af3bd74364 wordpress: bring site url under chef control --- 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"