Add initial setup global settings
This commit is contained in:
parent
a7af0f64d2
commit
6eab3ac311
7 changed files with 113 additions and 11 deletions
|
|
@ -83,7 +83,15 @@ func (rb rebuild) Run(context wisski_distillery.Context) (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
return instance.SystemManager().Apply(context.Context, writer, sys, true)
|
||||
smanager := instance.SystemManager()
|
||||
|
||||
if err := smanager.Apply(context.Context, writer, sys, true); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := smanager.RebuildSettings(context.Context, writer); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}, wissKIs, status.SmartMessage(func(item *wisski.WissKI) string {
|
||||
return fmt.Sprintf("rebuild %q", item.Slug)
|
||||
}))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue