Commit e2b2d987 authored by Dmitry Volodin's avatar Dmitry Volodin
Browse files

Merge branch 'fix-reload' into 'master'

Fix rndc reload on new zones

See merge request !10
parents e6a9d567 5ea1baff
Pipeline #9722 failed with stages
in 3 minutes and 50 seconds
......@@ -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()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment