...
 
Commits (2)
......@@ -101,12 +101,13 @@ func (c *BindDNSSync) GetZonePath(name string) string {
// Apply changes
func (c *BindDNSSync) ApplyChanges() error {
isDirty := c.Inventory.IsDirty
err := c.Inventory.Save()
if err != nil {
return fmt.Errorf("Failed to apply changes: %s", err)
}
if !c.NoApply {
if c.Inventory.IsDirty {
if isDirty {
// Include changed, reload all configuration
cmd := exec.Command("rndc", "reload")
err = cmd.Run()
......