From 8c91fa3c1907879f990d4af4fd1d6d5b0df8727e Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 13 May 2026 21:46:48 -0300 Subject: [PATCH] fix: run post-install commands from wp root with PLUGIN_DIR env Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .docker/wordpress/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.docker/wordpress/entrypoint.sh b/.docker/wordpress/entrypoint.sh index 8947e2b..4e88559 100644 --- a/.docker/wordpress/entrypoint.sh +++ b/.docker/wordpress/entrypoint.sh @@ -196,7 +196,8 @@ run_custom_plugin_post_install_commands() { fi ( - cd "$plugin_dir" + cd /var/www/html + export PLUGIN_DIR="$plugin_dir" bash -lc "$command" ) done < <(printf '%s' "$entry" | base64 -d | yq -r '.post_install_commands[]?')