From 487f21be539a9a35f1462f52ba0b2133d0803784 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20L=C3=B3pez?= Date: Fri, 13 Dec 2024 13:36:22 +0100 Subject: [PATCH] fix: Force docroot and drupal type project on kickstart --- commands/host/aljibe-kickstart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/commands/host/aljibe-kickstart b/commands/host/aljibe-kickstart index dd0ac54..cd78aaa 100644 --- a/commands/host/aljibe-kickstart +++ b/commands/host/aljibe-kickstart @@ -6,6 +6,7 @@ ## Example: ddev aljibe-kickstart DRUPAL_VERSION=d11 + AUTO_CONFIRM=false # Check if ${DDEV_APPROOT}/.ddev/kickstart/ exists, if not show a warning and exit @@ -43,6 +44,11 @@ fi if [ "$CONFIRMATION" != "n" ]; then cp -rTf ${DDEV_APPROOT}/.ddev/kickstart/common ${DDEV_APPROOT} cp -rTf ${DDEV_APPROOT}/.ddev/kickstart/${DRUPAL_VERSION} ${DDEV_APPROOT} + if [ DRUPAL_VERSION == "d11" ]; then + ddev config --project-type=drupal11 --docroot=web + else + ddev config --project-type=drupal10 --docroot=web + fi echo "Kickstart files have been copied. Make sure yout .gitignore file ignores .ddev/kickstart directory." else echo "Kickstart operation cancelled."