diff --git a/.docksal/commands/init-site b/.docksal/commands/init-site index efacf49..b6efff6 100755 --- a/.docksal/commands/init-site +++ b/.docksal/commands/init-site @@ -52,6 +52,11 @@ site_install () { cd $DOCROOT_PATH + if [[ $HOSTNAME == "cli" ]]; then + # Add settings.local.php if it doesn't already exist and we're in docksal. This will get ignored by git. + copy_settings_file $DOCROOT_PATH/sites/example.settings.local.php $SITEDIR_PATH/settings.local.php + fi + # We disable email sending here so site-install does not return an error PHP_OPTIONS="-d sendmail_path=`which true`" drush site-install -y --site-name='My Drupal 8 Site' --sites-subdir="default" }