From c121b8eeba29a67942ee8d1a12508561071f56cc Mon Sep 17 00:00:00 2001 From: Pavlos Daniel Date: Tue, 23 Nov 2021 02:33:36 +0000 Subject: [PATCH 1/2] Define an account password during install if one is given. --- src/Robo/Commands/Drupal/InstallCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Robo/Commands/Drupal/InstallCommand.php b/src/Robo/Commands/Drupal/InstallCommand.php index ecb58e833..ac2ed11b3 100644 --- a/src/Robo/Commands/Drupal/InstallCommand.php +++ b/src/Robo/Commands/Drupal/InstallCommand.php @@ -120,6 +120,11 @@ function ($string) { ->verbose(TRUE) ->printOutput(TRUE); + // Allow installs to define a custom user 1 password. + if ($this->getConfigValue('drupal.account.pass') !== NULL) { + $task->option('account-pass', $this->getConfigValue('drupal.account.pass')); + } + // Install site from existing config if supported. $strategy = $this->getConfigValue('cm.strategy'); $cm_core_key = 'sync'; From 8b185da0bb203d7447bb786ab8ff88b04074771e Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Mon, 28 Feb 2022 12:45:20 -0800 Subject: [PATCH 2/2] add config to build.yml --- config/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config/build.yml b/config/build.yml index f1587a1ac..6a1de41d6 100644 --- a/config/build.yml +++ b/config/build.yml @@ -54,13 +54,16 @@ deploy: exclude_additions_file: ${repo.root}/blt/deploy-exclude-additions.txt gitignore_file: ${blt.root}/scripts/blt/deploy/.gitignore -# File and Directory locations. +# Drupal docroot. docroot: ${repo.root}/docroot -# Drupal Account Credentials. These are used for installing Drupal. +# Settings for installing Drupal. drupal: - #account.name: admin - account.mail: no-reply@example.com + account: + # Admin account name and password will be randomly generated unless set here. + #name: admin + #pass: + mail: no-reply@example.com site.mail: ${drupal.account.mail} locale: en local_settings_file: ${docroot}/sites/${site}/settings/local.settings.php