restart warewulfd after node and profile set commands

This commit is contained in:
Cooper, Trevor
2021-04-15 12:40:36 -07:00
parent b7908d8747
commit ec4ec0e796
2 changed files with 2 additions and 0 deletions

View File

@@ -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))