Drush site-install + existing-config + sites-subdir not working

Created on 23 March 2020, over 4 years ago
Updated 10 May 2023, over 1 year ago

Hey folks,

I am currently playing around with the --existing-config flag for drush site-install + --sites-subdir="fresh-install" and I am facing an issue that I have to run the command twice to actually get the installation process running.

So the full command I am running looks like:
drush si --existing-config --sites-subdir="fresh-export" --db-url="mysql://123:456t@mariadb:3306/fresh_install"

The first time I execute the command I am getting:
The configuration directory type 'sync' does not exist

I have added the following to the sites/default/default.settings.php file
$config_directories[CONFIG_SYNC_DIRECTORY] = '../config/sync';

On the first attempt the new sites subdirectory gets created and the settings.php file gets copied from sites/default/default.settings.php, but it seems like during the first try the configuration for the config directory is not read from the settings.php file which just has been copied.

Any idea how to resolve that?

πŸ› Bug report
Status

Closed: duplicate

Version

10.1 ✨

Component
InstallΒ  β†’

Last updated 2 days ago

No maintainer
Created by

πŸ‡©πŸ‡ͺGermany sgurlt

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024