From dc460396aacc0c7516ceacaad55a84a84c888ffb Mon Sep 17 00:00:00 2001 From: Avunu LLC Date: Wed, 11 Sep 2024 23:25:51 -0400 Subject: [PATCH] re-enable mu-plugins --- docker-entrypoint.sh | 8 +++--- mu-plugins/loopback.php | 64 +++++++++++++++++++++++++++++++++++++++++ wordpress.nix | 4 +++ 3 files changed, 72 insertions(+), 4 deletions(-) create mode 100644 mu-plugins/loopback.php diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a7a5d32..f26255c 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -67,10 +67,10 @@ if [ ! -f /var/www/html/wp-includes/version.php ]; then install_wordpress fi -# # Always copy the custom mu-plugins -# echo "Copying custom mu-plugins" -# cp -r /mu-plugins /var/www/html/wp-content/mu-plugins -# chmod 755 /var/www/html/wp-content/mu-plugins +# Always copy the custom mu-plugins +echo "Copying custom mu-plugins" +cp -r /mu-plugins /var/www/html/wp-content/mu-plugins +chmod 755 /var/www/html/wp-content/mu-plugins # if PROC_TYPE=worker, then run cron jobs on the minute via wp-cli if [ "$PROC_TYPE" = "worker" ]; then diff --git a/mu-plugins/loopback.php b/mu-plugins/loopback.php new file mode 100644 index 0000000..a6082c2 --- /dev/null +++ b/mu-plugins/loopback.php @@ -0,0 +1,64 @@ +