diff --git a/package/yast2-vpn.changes b/package/yast2-vpn.changes index ead04b9..1a277d7 100644 --- a/package/yast2-vpn.changes +++ b/package/yast2-vpn.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 5 15:50:35 UTC 2023 - Mohd Saquib + +- Fixed an issue where yast2-vpn module breaks when strongswan is + updated to version >= 5.8.0 (boo#1176735) +- 4.6.1 + ------------------------------------------------------------------- Fri Mar 03 14:44:07 UTC 2023 - Ladislav Slezák diff --git a/package/yast2-vpn.spec b/package/yast2-vpn.spec index fcfac05..3eeaaa5 100644 --- a/package/yast2-vpn.spec +++ b/package/yast2-vpn.spec @@ -17,7 +17,7 @@ Name: yast2-vpn -Version: 4.6.0 +Version: 4.6.1 Release: 0 Url: https://github.com/yast/yast-vpn Source0: %{name}-%{version}.tar.bz2 diff --git a/src/lib/vpn/view_log_dialog.rb b/src/lib/vpn/view_log_dialog.rb index 3288d6c..434d0c4 100644 --- a/src/lib/vpn/view_log_dialog.rb +++ b/src/lib/vpn/view_log_dialog.rb @@ -77,7 +77,7 @@ def restart_daemon_handler _("Existing connections will be interrupted.\n" + "Do you still wish to continue?") ) - if !(Yast::Service.Active("strongswan") ? Yast::Service.Restart("strongswan") : Yast::Service.Start("strongswan")) + if !(Yast::Service.Active("ipsec") ? Yast::Service.Restart("ipsec") : Yast::Service.Start("ipsec")) Yast::Popup.Error(_("Failed to restart IPSec daemon")) end end @@ -90,7 +90,7 @@ def finish_handler private # Read daemon status and refresh the content of log views. def refresh_status - sh_daemon_status = Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), "systemctl status strongswan") + sh_daemon_status = Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), "systemctl status ipsec") Yast::UI.ChangeWidget(Id(:daemon_status), :Value, sh_daemon_status["stdout"]) sh_conn_status = Yast::SCR.Execute(Yast::Path.new(".target.bash_output"), "ipsec statusall 2>&1") diff --git a/src/modules/IPSecConf.rb b/src/modules/IPSecConf.rb index 216b831..3704d76 100644 --- a/src/modules/IPSecConf.rb +++ b/src/modules/IPSecConf.rb @@ -62,7 +62,7 @@ def Read load_ipsec_conf_ini load_ipsec_secrets_ini # Read daemon settings - @enable_ipsec = Service.Enabled("strongswan") + @enable_ipsec = Service.Enabled("ipsec") customrules_content = get_customrules_txt @tcp_reduce_mss = customrules_content != nil && customrules_content.include?("--set-mss #{REDUCED_MSS}") @autoyast_modified = true @@ -172,14 +172,14 @@ def Write SCR.Write(path(".etc.ipsec_secrets"), nil) # Enable/disable daemon if @enable_ipsec - Service.Enable("strongswan") - if !(Service.Active("strongswan") ? Service.Restart("strongswan") : Service.Start("strongswan")) + Service.Enable("strongswan-starter") + if !(Service.Active("ipsec") ? Service.Restart("ipsec") : Service.Start("ipsec")) Report.Error(_("Failed to start IPSec daemon.")) successful = false end else - Service.Disable("strongswan") - Service.Stop("strongswan") + Service.Stop("ipsec") + Service.Disable("strongswan-starter") end # Configure IP forwarding sysctlconfig_modified = false