Skip to content

Commit a2f7b7a

Browse files
committed
fix(wordpress): set plugin ownership before post-install commands
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 7eb7021 commit a2f7b7a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.docker/wordpress/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ finalize_custom_plugin() {
204204
local entry="$2"
205205
local plugin_dir="/var/www/html/wp-content/plugins/$plugin_name"
206206

207-
run_custom_plugin_post_install_commands "$plugin_name" "$entry"
208207
chown -R www-data:www-data "$plugin_dir"
208+
run_custom_plugin_post_install_commands "$plugin_name" "$entry"
209209
runuser -u www-data -- wp plugin activate "$plugin_name" 2>/dev/null || true
210210
}
211211

0 commit comments

Comments
 (0)