add ocs to new config scheme

This commit is contained in:
A.Unger
2021-03-12 16:51:28 +01:00
parent 49f7266d6e
commit e132be0db6
8 changed files with 37 additions and 15 deletions
+3
View File
@@ -16,6 +16,9 @@ func OnlyofficeCommand(cfg *config.Config) *cli.Command {
Usage: "Start onlyoffice server",
Category: "Extensions",
Flags: flagset.ServerWithConfig(cfg.Onlyoffice),
Before: func(ctx *cli.Context) error {
return ParseConfig(ctx, cfg)
},
Action: func(c *cli.Context) error {
origCmd := command.Server(configureOnlyoffice(cfg))
return handleOriginalAction(c, origCmd)