Disable automatic "Create a Mattermost team"
Hi,
is it possibile to disable the automatic creation of Mattermost teams when creating a new group? It's rather annoying to disable the checkbox each time I create a new team or remember to uncheck the checkbox.
Trying to delete a team via cli is not possible:
/opt/gitlab/embedded/bin/mattermost --config /var/opt/gitlab/mattermost/config.json team delete <TEAM>
Have you performed a database backup? (YES/NO):
YES
Are you sure you want to delete the teams specified? All data will be permanently deleted? (YES/NO):
YES
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xcc0808]
goroutine 1 [running]:
main.getTeamFromTeamArg(0x7ffd15fa0856, 0x3, 0x1)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/cmd/platform/teamargs.go:21 +0x28
main.getTeamsFromTeamArgs(0xc42010f110, 0x1, 0x3, 0x1, 0x0, 0x0)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/cmd/platform/teamargs.go:13 +0xa2
main.deleteTeamsCmdF(0x12e4c80, 0xc42010f110, 0x1, 0x3, 0x0, 0x0)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/cmd/platform/team.go:185 +0xc1
github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).execute(0x12e4c80, 0xc4200543c0, 0x3, 0x4, 0x12e4c80, 0xc4200543c0)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:617 +0x3f8
github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x12e3600, 0x12e6300, 0x0, 0xc420d53f78)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:696 +0x339
github.com/mattermost/platform/vendor/github.com/spf13/cobra.(*Command).Execute(0x12e3600, 0xc420000340, 0xc420000340)
/var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/vendor/github.com/spf13/cobra/command.go:655 +0x2b
main.main()
/var/lib/jenkins/jobs/msr/jobs/d/jobs/platform-release/workspace/src/github.com/mattermost/platform/cmd/platform/mattermost.go:26 +0x2d
Thanks!
Edited by Fabian Zoske