Skip to content

Commit

Permalink
Merge pull request #1533 from openziti/quickstart-preserve-ctrl-yaml
Browse files Browse the repository at this point in the history
no clobber quickstart ctrl.yaml if already init
  • Loading branch information
qrkourier authored Nov 22, 2023
2 parents a6eb13d + c0655bb commit b53434f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ziti/cmd/edge/quickstart.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit b53434f

Please sign in to comment.