From a2f7b7a4da2e121fc5fe6fc086f496099ccd42bc Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Thu, 14 May 2026 12:37:05 -0300 Subject: [PATCH] fix(wordpress): set plugin ownership before post-install commands Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .docker/wordpress/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.docker/wordpress/entrypoint.sh b/.docker/wordpress/entrypoint.sh index 4e980e6..bab22fc 100644 --- a/.docker/wordpress/entrypoint.sh +++ b/.docker/wordpress/entrypoint.sh @@ -204,8 +204,8 @@ finalize_custom_plugin() { local entry="$2" local plugin_dir="/var/www/html/wp-content/plugins/$plugin_name" - run_custom_plugin_post_install_commands "$plugin_name" "$entry" chown -R www-data:www-data "$plugin_dir" + run_custom_plugin_post_install_commands "$plugin_name" "$entry" runuser -u www-data -- wp plugin activate "$plugin_name" 2>/dev/null || true }