Skip to content

Commit

Permalink
Add allow-plugins config #467
Browse files Browse the repository at this point in the history
  • Loading branch information
paul121 authored and mstenta committed Jan 3, 2022
1 parent ea09c77 commit bef4f25
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker/build-farmOS.sh
Expand Up @@ -38,6 +38,18 @@ elif [[ ! "${FARMOS_VERSION}" =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9
fi
composer require farmos/farmos ${FARMOS_COMPOSER_VERSION} --no-install

# Add allow-plugins config.
allowedPlugins=(
"composer/installers"
"cweagans/composer-patches"
"drupal/core-composer-scaffold"
"oomphinc/composer-installers-extender"
"wikimedia/composer-merge-plugin"
)
for plugin in ${allowedPlugins[@]}; do
composer config --no-plugins allow-plugins.$plugin true
done

# Run composer install with optional arguments passed into this script.
if [ $# -eq 0 ]; then
composer install
Expand Down

0 comments on commit bef4f25

Please sign in to comment.