mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-14 21:57:49 +08:00
disable default pro setup
This commit is contained in:
parent
c6d76df5af
commit
74579e467b
1 changed files with 6 additions and 6 deletions
|
@ -38,12 +38,12 @@ func InitPro() {
|
||||||
controller.ListRoles = proControllers.ListRoles
|
controller.ListRoles = proControllers.ListRoles
|
||||||
logic.EnterpriseCheckFuncs = append(logic.EnterpriseCheckFuncs, func() {
|
logic.EnterpriseCheckFuncs = append(logic.EnterpriseCheckFuncs, func() {
|
||||||
// == License Handling ==
|
// == License Handling ==
|
||||||
enableLicenseHook := false
|
enableLicenseHook := true
|
||||||
licenseKeyValue := servercfg.GetLicenseKey()
|
// licenseKeyValue := servercfg.GetLicenseKey()
|
||||||
netmakerTenantID := servercfg.GetNetmakerTenantID()
|
// netmakerTenantID := servercfg.GetNetmakerTenantID()
|
||||||
if licenseKeyValue != "" && netmakerTenantID != "" {
|
// if licenseKeyValue != "" && netmakerTenantID != "" {
|
||||||
enableLicenseHook = true
|
// enableLicenseHook = true
|
||||||
}
|
// }
|
||||||
if !enableLicenseHook {
|
if !enableLicenseHook {
|
||||||
err := initTrial()
|
err := initTrial()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue