Skip to content

Commit

Permalink
fix: Force docroot and drupal type project on kickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjol committed Dec 13, 2024
1 parent 0a14b83 commit 487f21b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands/host/aljibe-kickstart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."
Expand Down

0 comments on commit 487f21b

Please sign in to comment.