From 9725959472f76a32e61b26e6b838a1e85c314ed2 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 18 Dec 2017 15:12:58 +0100 Subject: [PATCH] create-profile.sh: fix creating the profile outside of the web root Use the new --profile-path option of create:profile available since drupal-console 1.3.0, this avoids removing the profile directory used when installing the site. --- libexec/create-profile.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libexec/create-profile.sh b/libexec/create-profile.sh index a48e75e..5fe572a 100755 --- a/libexec/create-profile.sh +++ b/libexec/create-profile.sh @@ -84,15 +84,14 @@ pushd "$WEB_ROOT" ENABLED_MODULES="$($DRUSH pm-list --type=module --status=enabled --pipe | tr '\n' ',')" ENABLED_THEMES="$($DRUSH pm-list --type=theme --status=enabled --pipe | tr '\n' ',')" -rm -rf "${WEB_ROOT}/profiles/$PROFILE_MACHINE_NAME" $DRUPAL_CONSOLE generate:profile \ --profile="$PROFILE_TITLE" \ --machine-name="$PROFILE_MACHINE_NAME" \ --description="Drupal installation profile for $PROFILE_TITLE" \ --dependencies=$ENABLED_MODULES \ --themes=$ENABLED_THEMES \ + --profile-path="$PROJECT_ROOT" \ --no-interaction -cp -a "${WEB_ROOT}/profiles/${PROFILE_MACHINE_NAME}" "$PROJECT_ROOT" # Basically do what's suggested in the "Configuration" section here: # https://www.drupal.org/docs/8/creating-distributions/how-to-write-a-drupal-8-installation-profile -- 2.1.4