Skip to content

Commit

Permalink
bnc#981101 - yast2 mail adds POSTFIX_NODAEMON to /etc/sysconfig/postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Varkoly committed May 24, 2016
1 parent 34a57fe commit 717ad19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions package/yast2-mail.changes
Expand Up @@ -2,6 +2,7 @@
Tue May 24 04:12:36 UTC 2016 - varkoly@suse.com

- bnc#981103 - yast2 mail uses always brackets for relayhost
- bnc#981101 - yast2 mail adds POSTFIX_NODAEMON to /etc/sysconfig/postfix
- 3.1.8

-------------------------------------------------------------------
Expand Down
6 changes: 1 addition & 5 deletions src/modules/Mail.rb
Expand Up @@ -357,7 +357,7 @@ def Read(abort)
elsif @mta == :postfix
nc = SCR.Read(path(".sysconfig.postfix.POSTFIX_NODNS")) == "yes"
ex = SCR.Read(path(".sysconfig.postfix.POSTFIX_DIALUP")) == "yes"
nd = SCR.Read(path(".sysconfig.postfix.POSTFIX_NODAEMON")) == "yes"
nd = Service.Enabled("postfix")
else
return false
end
Expand Down Expand Up @@ -647,19 +647,15 @@ def WriteGeneral
end

if @connection_type == :nodaemon
SCR.Write(path(".sysconfig.postfix.POSTFIX_NODAEMON"), "yes")
SCR.Write(nc_nd, "yes")
SCR.Write(ex_di, "no")
elsif @connection_type == :permanent
SCR.Write(path(".sysconfig.postfix.POSTFIX_NODAEMON"), "no")
SCR.Write(nc_nd, "no")
SCR.Write(ex_di, "no")
elsif @connection_type == :dialup
SCR.Write(path(".sysconfig.postfix.POSTFIX_NODAEMON"), "no")
SCR.Write(nc_nd, "yes")
SCR.Write(ex_di, "yes")
elsif @connection_type == :none
SCR.Write(path(".sysconfig.postfix.POSTFIX_NODAEMON"), "no")
SCR.Write(nc_nd, "yes")
SCR.Write(ex_di, "no")
else
Expand Down

0 comments on commit 717ad19

Please sign in to comment.