Skip to content

Commit

Permalink
chore: add custom/plugins directory to shopware build if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
janosmiko committed Feb 7, 2025
1 parent cdeda89 commit 6dd9c38
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions images/_php-fpm-common/shopware-web/bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ composer_configure() {
fi
}

shopware_create_custom_plugins_directory() {
if [[ -d "$(app_path)/custom/plugins" ]]; then
return 0
fi

log "Creating custom plugins directory"
mkdir -p "$(app_path)/custom/plugins"
}

composer_install() {
if [[ ! -f "composer.json" ]]; then
return 0
Expand Down Expand Up @@ -185,6 +194,7 @@ main() {
composer_self_update

composer_configure
shopware_create_custom_plugins_directory
composer_install
composer_clear_cache
shopware_bundle_dump
Expand Down

0 comments on commit 6dd9c38

Please sign in to comment.