← Back to team overview

wordpress-charmers team mailing list archive

[Merge] ~tcuthbert/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master into ~wordpress-charmers/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master

 

Thomas Cuthbert has proposed merging ~tcuthbert/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master into ~wordpress-charmers/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master.

Requested reviews:
  Wordpress Charmers (wordpress-charmers)

For more details, see:
https://code.launchpad.net/~tcuthbert/charm-k8s-wordpress/+git/wordpress-k8s-image-builder/+merge/382364
-- 
Your team Wordpress Charmers is requested to review the proposed merge of ~tcuthbert/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master into ~wordpress-charmers/charm-k8s-wordpress/+git/wordpress-k8s-image-builder:master.
diff --git a/files/docker-entrypoint.sh b/files/docker-entrypoint.sh
index 0726a74..136a0d5 100644
--- a/files/docker-entrypoint.sh
+++ b/files/docker-entrypoint.sh
@@ -11,7 +11,6 @@ do
     sed -i -e "s/%%%${key}%%%/$(pwgen 64 1)/" /var/www/html/wp-info.php
 done
 
-echo "127.0.0.1	api.wordpress.org wordpress.org" >> /etc/hosts
 nohup bash -c "/srv/wordpress-helpers/plugin_handler.py &"
 
 exec "$@"
diff --git a/files/wp-config.php b/files/wp-config.php
index 7bcbc13..5ee9f8c 100644
--- a/files/wp-config.php
+++ b/files/wp-config.php
@@ -22,4 +22,8 @@ require_once(ABSPATH . 'wp-info.php');
 /** Sets up WordPress vars and included files. */
 require_once(ABSPATH . 'wp-settings.php');
 
+/** Prevent wordpress from making external requests. */
+define( 'WP_HTTP_BLOCK_EXTERNAL', true );
+define( 'AUTOMATIC_UPDATER_DISABLED', true );
+
 remove_filter('template_redirect', 'redirect_canonical');

Follow ups