Change answer variable to api domains

This commit is contained in:
Melon 2023-07-07 16:39:41 +01:00
parent cebad8224c
commit d648555af1
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -57,7 +57,7 @@ func (s *setupCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...interfa
var answers struct { var answers struct {
ApiListen string ApiListen string
FirstDomains string ApiDomains string
AcmeRefresh string AcmeRefresh string
AcmePresentUrl string AcmePresentUrl string
AcmeCleanUpUrl string AcmeCleanUpUrl string
@ -154,7 +154,7 @@ func (s *setupCmd) Execute(ctx context.Context, f *flag.FlagSet, args ...interfa
Directory: "production", Directory: "production",
Certificate: "default", Certificate: "default",
}, },
Domains: strings.Split(answers.FirstDomains, ","), Domains: strings.Split(answers.ApiDomains, ","),
}) })
if err != nil { if err != nil {
fmt.Println("[Orchid] Failed to write config file: ", err) fmt.Println("[Orchid] Failed to write config file: ", err)