Skip to content

Fix post-install commands execution as www-data in WordPress entrypoint#26

Merged
vitormattos merged 2 commits into
mainfrom
fix/run-post-install-as-www-data
May 14, 2026
Merged

Fix post-install commands execution as www-data in WordPress entrypoint#26
vitormattos merged 2 commits into
mainfrom
fix/run-post-install-as-www-data

Conversation

@vitormattos
Copy link
Copy Markdown
Member

@vitormattos vitormattos commented May 14, 2026

Summary

  • run custom plugin post_install_commands as www-data instead of root-shell subshell
  • preserve execution context in /var/www/html and keep PLUGIN_DIR exported for commands

Why

Some post-install commands need to run with the same filesystem permissions/user context used by WordPress to avoid ownership/permission issues.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos force-pushed the fix/run-post-install-as-www-data branch from f84a54e to 1ecc824 Compare May 14, 2026 02:48
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos vitormattos merged commit 8772042 into main May 14, 2026
2 checks passed
@vitormattos vitormattos deleted the fix/run-post-install-as-www-data branch May 14, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant