Skip to content

Commit

Permalink
Renamed RunSuSEConfig to update_mta_config
Browse files Browse the repository at this point in the history
SuSE config scripts has been obsolete for some time. The function
currently runs only update scripts for MTA.
  • Loading branch information
mchf committed Apr 24, 2014
1 parent 95e182f commit 52915fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions src/include/network/runtime.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,18 @@ def initialize_network_runtime(include_target)
textdomain "network"
end

# Run SuSEconfig
# @return true if success
def RunSuSEconfig
# Runs external script which updates MTA's configuration.
#
# Currently supported MTAs:
# - sendmail
# - postfix
def update_mta_config
Builtins.y2milestone("Updating sendmail and/or postfix configuration.")
SCR.Execute(
path(".target.bash"),
"/usr/lib/sendmail.d/update 2>/dev/null"
)
SCR.Execute(path(".target.bash"), "/usr/sbin/config.postfix 2>/dev/null")
true
end

end
Expand Down
2 changes: 1 addition & 1 deletion src/modules/DNS.rb
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ def Write
ProgressNextStage(_("Updating configuration..."))

# Finish him
RunSuSEconfig()
update_mta_config
Builtins.sleep(sl)

# if(SCR::Read(.target.size, resolv_conf) < 0)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/Lan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ def Write
return false if Abort()
# Progress step 10
ProgressNextStage(_("Updating configuration..."))
RunSuSEconfig() if !@write_only
update_mta_config if !@write_only
Builtins.sleep(sl)

if NetworkService.is_network_manager
Expand Down

0 comments on commit 52915fc

Please sign in to comment.