From fb44196e7279681096462e07d7f081f4325420a7 Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Wed, 13 May 2026 22:00:30 -0300 Subject: [PATCH] fix: embed PLUGIN_DIR in bash -lc command to survive login shell env reset Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- .docker/wordpress/entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.docker/wordpress/entrypoint.sh b/.docker/wordpress/entrypoint.sh index 4e88559..9a78648 100644 --- a/.docker/wordpress/entrypoint.sh +++ b/.docker/wordpress/entrypoint.sh @@ -197,8 +197,7 @@ run_custom_plugin_post_install_commands() { ( cd /var/www/html - export PLUGIN_DIR="$plugin_dir" - bash -lc "$command" + bash -lc "export PLUGIN_DIR='$plugin_dir'; $command" ) done < <(printf '%s' "$entry" | base64 -d | yq -r '.post_install_commands[]?') }