restart warewulfd after node and profile set commands
This commit is contained in:
@@ -296,6 +296,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
if len(nodes) > 0 {
|
||||
if SetYes == true {
|
||||
nodeDB.Persist()
|
||||
warewulfd.DaemonReload()
|
||||
} else {
|
||||
q := fmt.Sprintf("Are you sure you want to modify %d nodes(s)", len(nodes))
|
||||
|
||||
|
||||
@@ -259,6 +259,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
if len(profiles) > 0 {
|
||||
if SetYes == true {
|
||||
nodeDB.Persist()
|
||||
warewulfd.DaemonReload()
|
||||
} else {
|
||||
q := fmt.Sprintf("Are you sure you want to modify %d profile(s)", len(profiles))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user