diff --git a/core/modules/system/config/install/system.site.yml b/core/modules/system/config/install/system.site.yml index 10e2be2..2e61b36 100644 --- a/core/modules/system/config/install/system.site.yml +++ b/core/modules/system/config/install/system.site.yml @@ -1,5 +1,5 @@ uuid: '' -name: Drupal +name: '' mail: '' slogan: '' page: diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 4a8683e..94c8e33 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -644,10 +644,13 @@ function system_install() { $cron_key = Crypt::randomBytesBase64(55); \Drupal::state()->set('system.cron_key', $cron_key); - // Populate the site UUID. - \Drupal::configFactory()->getEditable('system.site') - ->set('uuid', \Drupal::service('uuid')->generate()) - ->save(); + // Populate the site UUID and default name (if not set). + $site = \Drupal::configFactory()->getEditable('system.site'); + $site->set('uuid', \Drupal::service('uuid')->generate()); + if (!$site->get('name')) { + $site->set('name', 'Drupal'); + } + $site->save(); } /**