Issue
Known issue with Drush 9, Specifying --sites-subdir=
has unexpected behavior when the value is set several directories deep, for example --sites-subdir="a/b/c"
Resolution
Option 1: install the site manually, requesting `install.php` in a browser.
Option 2: Move all the default_content json into a separate module (for example "siteexample_default_content”).
Then, use a “post-install” factory hook like the one below:
<?php
\Drupal::service('module_installer')->install([
'sitefarm_default_content',
]);
\Drupal::service('module_installer')->uninstall([
'default_content',
'rest',
'hal',
'serialization',
'sitefarm_default_content',
]);
You may, also, need to modify all other auto-install scripts in Docksal, Probo.ci, etc, to run this script with Drush after a site install.
Cause
Known issue with Drush 9, https://github.com/drush-ops/drush/issues/4421