provision_container: Apply new workaround

This commit is contained in:
Tom Wiesing 2022-03-08 13:25:56 +01:00
parent 5976e19d10
commit 945fc80998
No known key found for this signature in database
GPG key ID: DC1F29F2BC78AB15

View file

@ -62,17 +62,18 @@ function drupal_sites_permission_workaround() {
chmod -R u+w "$WEB_DIR/sites/" || true
}
# setup allow-plugins
composer config allow-plugins true || true
# Create a new composer project.
log_info " => Creating composer project"
if [ -z "${DRUPAL_VERSION}" ]; then
composer create-project 'drupal/recommended-project:^9.0.0' .
composer --no-interaction create-project 'drupal/recommended-project:^9.0.0' .
else
composer create-project "drupal/recommended-project:$DRUPAL_VERSION" .
composer --no-interaction create-project "drupal/recommended-project:$DRUPAL_VERSION" .
fi
# needed for composer > 2.2
composer --no-interaction config allow-plugins true
# Install drush so that we can automate a lot of things
log_info " => Installing 'drush'"
composer require drush/drush