mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-05 02:20:28 -05:00
prevent from registering broken services
This commit is contained in:
@@ -11,7 +11,6 @@ import (
|
||||
"github.com/owncloud/ocis-konnectd/pkg/metrics"
|
||||
"github.com/owncloud/ocis-konnectd/pkg/server/http"
|
||||
"github.com/owncloud/ocis/pkg/config"
|
||||
"github.com/owncloud/ocis/pkg/register"
|
||||
)
|
||||
|
||||
// KonnectdCommand is the entrypoint for the konnectd command.
|
||||
@@ -78,7 +77,7 @@ func configureKonnectd(cfg *config.Config) *svcconfig.Config {
|
||||
return cfg.Konnectd
|
||||
}
|
||||
|
||||
func init() {
|
||||
register.AddCommand(KonnectdCommand)
|
||||
register.AddHandler(KonnectdHandler)
|
||||
}
|
||||
// func init() {
|
||||
// register.AddCommand(KonnectdCommand)
|
||||
// register.AddHandler(KonnectdHandler)
|
||||
// }
|
||||
|
||||
+4
-5
@@ -11,7 +11,6 @@ import (
|
||||
"github.com/owncloud/ocis-ocs/pkg/metrics"
|
||||
"github.com/owncloud/ocis-ocs/pkg/server/http"
|
||||
"github.com/owncloud/ocis/pkg/config"
|
||||
"github.com/owncloud/ocis/pkg/register"
|
||||
)
|
||||
|
||||
// OCSCommand is the entrypoint for the ocs command.
|
||||
@@ -78,7 +77,7 @@ func configureOCS(cfg *config.Config) *svcconfig.Config {
|
||||
return cfg.OCS
|
||||
}
|
||||
|
||||
func init() {
|
||||
register.AddCommand(OCSCommand)
|
||||
register.AddHandler(OCSHandler)
|
||||
}
|
||||
// func init() {
|
||||
// register.AddCommand(OCSCommand)
|
||||
// register.AddHandler(OCSHandler)
|
||||
// }
|
||||
|
||||
@@ -11,7 +11,6 @@ import (
|
||||
"github.com/owncloud/ocis-phoenix/pkg/metrics"
|
||||
"github.com/owncloud/ocis-phoenix/pkg/server/http"
|
||||
"github.com/owncloud/ocis/pkg/config"
|
||||
"github.com/owncloud/ocis/pkg/register"
|
||||
)
|
||||
|
||||
// PhoenixCommand is the entrypoint for the phoenix command.
|
||||
@@ -78,7 +77,7 @@ func configurePhoenix(cfg *config.Config) *svcconfig.Config {
|
||||
return cfg.Phoenix
|
||||
}
|
||||
|
||||
func init() {
|
||||
register.AddCommand(PhoenixCommand)
|
||||
register.AddHandler(PhoenixHandler)
|
||||
}
|
||||
// func init() {
|
||||
// register.AddCommand(PhoenixCommand)
|
||||
// register.AddHandler(PhoenixHandler)
|
||||
// }
|
||||
|
||||
@@ -11,7 +11,6 @@ import (
|
||||
"github.com/owncloud/ocis-webdav/pkg/metrics"
|
||||
"github.com/owncloud/ocis-webdav/pkg/server/http"
|
||||
"github.com/owncloud/ocis/pkg/config"
|
||||
"github.com/owncloud/ocis/pkg/register"
|
||||
)
|
||||
|
||||
// WebDAVCommand is the entrypoint for the webdav command.
|
||||
@@ -78,7 +77,7 @@ func configureWebDAV(cfg *config.Config) *svcconfig.Config {
|
||||
return cfg.WebDAV
|
||||
}
|
||||
|
||||
func init() {
|
||||
register.AddCommand(WebDAVCommand)
|
||||
register.AddHandler(WebDAVHandler)
|
||||
}
|
||||
// func init() {
|
||||
// register.AddCommand(WebDAVCommand)
|
||||
// register.AddHandler(WebDAVHandler)
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user