internal/config/template: Cleanup
This commit cleans up the internal/config/template to remove code no longer used because of the new configuration.
This commit is contained in:
parent
aa3580c248
commit
2edd0f2fe2
7 changed files with 66 additions and 69 deletions
|
|
@ -100,7 +100,7 @@ func (bs cBootstrap) Run(context wisski_distillery.Context) error {
|
|||
|
||||
// setup a new template for the configuration file!
|
||||
var tpl config.Template
|
||||
tpl.DeployRoot = bs.Directory
|
||||
tpl.RootPath = bs.Directory
|
||||
tpl.DefaultDomain = bs.Hostname
|
||||
|
||||
// and use thge defaults
|
||||
|
|
@ -129,7 +129,7 @@ func (bs cBootstrap) Run(context wisski_distillery.Context) error {
|
|||
|
||||
// write out all the extra config files
|
||||
if err := logging.LogOperation(func() error {
|
||||
context.Println(tpl.SelfOverridesFile)
|
||||
context.Println(cfg.Paths.OverridesJSON)
|
||||
if err := environment.WriteFile(
|
||||
env,
|
||||
cfg.Paths.OverridesJSON,
|
||||
|
|
@ -139,7 +139,7 @@ func (bs cBootstrap) Run(context wisski_distillery.Context) error {
|
|||
return err
|
||||
}
|
||||
|
||||
context.Println(tpl.SelfResolverBlockFile)
|
||||
context.Println(cfg.Paths.ResolverBlocks)
|
||||
if err := environment.WriteFile(
|
||||
env,
|
||||
cfg.Paths.ResolverBlocks,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue