added warewulfconf as command line parameter
the environment variable WAREWULFCONF is also recognized Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
@@ -58,10 +58,7 @@ func RunServer() error {
|
||||
http.HandleFunc("/overlay-runtime/", ProvisionSend)
|
||||
http.HandleFunc("/status", StatusSend)
|
||||
|
||||
conf, err := warewulfconf.New()
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "could not get Warewulf configuration")
|
||||
}
|
||||
conf := warewulfconf.New()
|
||||
|
||||
daemonPort := conf.Warewulf.Port
|
||||
wwlog.Serv("Starting HTTPD REST service on port %d", daemonPort)
|
||||
|
||||
Reference in New Issue
Block a user