Skip to content

Instantly share code, notes, and snippets.

@webflo
Last active November 23, 2015 23:13
Show Gist options
  • Save webflo/cc48f2191a21e5c19804 to your computer and use it in GitHub Desktop.
Save webflo/cc48f2191a21e5c19804 to your computer and use it in GitHub Desktop.
/**
* Implements hook_drush_command().
*
* @return array
*/
function [project]_drush_command() {
$items['custom-site-install'] = [
'description' => 'Install Drupal',
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_ROOT,
];
return $items;
}
function drush_[project]_custom_site_install() {
drush_invoke('site-install', ['minimal']);
$uuid = '0aa8de4b-f9c3-4487-9000-aae83e054d13';
\Drupal::configFactory()->getEditable('system.site')->set('uuid', $uuid)->save();
}
---
drush custom-site-install -y && drush cim -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment