mirror of
https://github.com/openziti/ziti.git
synced 2026-10-12 15:28:05 +00:00
Merge pull request #1533 from openziti/quickstart-preserve-ctrl-yaml
no clobber quickstart ctrl.yaml if already init
This commit is contained in:
@@ -146,13 +146,13 @@ func (o *QuickstartOpts) run(ctx context.Context) {
|
||||
|
||||
o.createMinimalPki()
|
||||
|
||||
ctrl := create.NewCmdCreateConfigController()
|
||||
ctrl.SetArgs([]string{
|
||||
fmt.Sprintf("--output=%s", ctrlYaml),
|
||||
})
|
||||
_ = ctrl.Execute()
|
||||
|
||||
if !o.AlreadyInitialized {
|
||||
ctrl := create.NewCmdCreateConfigController()
|
||||
ctrl.SetArgs([]string{
|
||||
fmt.Sprintf("--output=%s", ctrlYaml),
|
||||
})
|
||||
_ = ctrl.Execute()
|
||||
|
||||
initCmd := edgeSubCmd.NewEdgeInitializeCmd(version.GetCmdBuildInfo())
|
||||
initCmd.SetArgs([]string{
|
||||
fmt.Sprintf("--username=%s", o.Username),
|
||||
|
||||
Reference in New Issue
Block a user