File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ func cmdStartRun(cmd *cobra.Command, args []string) {
5858 configureLogging ()
5959
6060 // Build service
61- service := mustPrepareService (false )
61+ service := mustPrepareService (true )
6262
6363 // Find executable
6464 exePath , err := os .Executable ()
@@ -70,14 +70,22 @@ func cmdStartRun(cmd *cobra.Command, args []string) {
7070 childArgs := make ([]string , 0 , len (os .Args ))
7171 cmd .InheritedFlags ().VisitAll (func (f * pflag.Flag ) {
7272 if f .Changed {
73- a := "--" + f .Name
74- value := f .Value .String ()
75- if value != "" {
76- a = a + "=" + value
73+ switch f .Name {
74+ case "ssl.auto-key" , "ssl.auto-server-name" , "ssl.auto-organization" , "ssl.keyfile" :
75+ // Do not pass these along
76+ default :
77+ a := "--" + f .Name
78+ value := f .Value .String ()
79+ if value != "" {
80+ a = a + "=" + value
81+ }
82+ childArgs = append (childArgs , a )
7783 }
78- childArgs = append (childArgs , a )
7984 }
8085 })
86+ if service .SslKeyFile != "" {
87+ childArgs = append (childArgs , "--ssl.keyfile=" + service .SslKeyFile )
88+ }
8189
8290 log .Debugf ("Found child args: %#v" , childArgs )
8391
You can’t perform that action at this time.
0 commit comments