Skip to content

Commit

Permalink
SuSEFirewall.Write checks internally for SuSEFirewall.GetModified
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Oct 14, 2014
1 parent 4ef1cf7 commit 680abcd
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/modules/Instserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ def SetupFTP(dir, ftproot, ftpalias)
end
end

# write firewall config if it has been modified
SuSEFirewall.Write if SuSEFirewall.GetModified
SuSEFirewall.Write

true
end
Expand Down Expand Up @@ -534,8 +533,7 @@ def SetupHTTP(dir, _alias)
end
RunSuseConfigApache(true)

# write firewall config if it has been modified
SuSEFirewall.Write if SuSEFirewall.GetModified
SuSEFirewall.Write

Service.Enable("apache2")
if Service.Status("apache2") == 0
Expand Down Expand Up @@ -603,8 +601,7 @@ def SetupNFS(dir, options)
Service.Start("nfsserver")
end

# write firewall config if it has been modified
SuSEFirewall.Write if SuSEFirewall.GetModified
SuSEFirewall.Write

true
end
Expand Down

0 comments on commit 680abcd

Please sign in to comment.