Add initial setup global settings
This commit is contained in:
parent
a7af0f64d2
commit
6eab3ac311
7 changed files with 113 additions and 11 deletions
|
|
@ -11,6 +11,7 @@ import (
|
|||
)
|
||||
|
||||
// Apply applies the given profile to this existing instance.
|
||||
// The instance must be running
|
||||
func (manager *Manager) Apply(ctx context.Context, progress io.Writer, flags Profile) error {
|
||||
// Update drupal
|
||||
if flags.Drupal != "" {
|
||||
|
|
|
|||
|
|
@ -127,6 +127,14 @@ func (provision *Manager) bootstrap(ctx context.Context, progress io.Writer, fla
|
|||
}
|
||||
}
|
||||
|
||||
// Rebuild the settings file
|
||||
logging.LogMessage(progress, "Rebuilding Settings")
|
||||
{
|
||||
if err := provision.dependencies.SystemManager.RebuildSettings(ctx, progress); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
// Create directory for ontologies
|
||||
logging.LogMessage(progress, fmt.Sprintf("Creating %q", barrel.OntologyDirectory))
|
||||
{
|
||||
|
|
@ -168,13 +176,6 @@ func (provision *Manager) bootstrap(ctx context.Context, progress io.Writer, fla
|
|||
}
|
||||
}
|
||||
|
||||
logging.LogMessage(progress, "Updating TRUSTED_HOST_PATTERNS in settings.php")
|
||||
{
|
||||
if err := provision.dependencies.Settings.SetTrustedDomain(ctx, nil, provision.Domain()); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
logging.LogMessage(progress, "Running initial cron")
|
||||
{
|
||||
if err := provision.dependencies.Drush.Exec(ctx, progress, "core-cron"); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue