Repository navigation
fix: migrate VPN backend disable logic from network-manager-integration-plugins - #641
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThe PR restores the VPN backend service-disable logic lost when the dependency was replaced, by adding a dcc-network-plugin post-install script that disables ipsec, xl2tpd, and openvpn on installation. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
…on-plugins The postinst from network-manager-integration-plugins (0.0.5-0deepin) was not migrated when its dependency was replaced with direct NM plugin deps in 581b0c6, leaving ipsec/xl2tpd/openvpn init.d services enabled on fresh installs. fix: 迁移 network-manager-integration-plugins 的 VPN 后端禁用逻辑 581b0c6 移除 network-manager-integration-plugins 依赖时未迁移其 postinst 的 VPN 后端禁用逻辑,导致 ipsec/xl2tpd/openvpn 的 init.d 服务保持启用。 本提交将 postinst 原样迁移到 dcc-network-plugin,安装时自动禁用这三个服务。 Log: 迁移 VPN 后端禁用逻辑到 dcc-network-plugin PMS: BUG-379501 Influence: 安装 dcc-network-plugin 后首次配置会禁用 ipsec/xl2tpd/openvpn 的 init.d 服务,由 NetworkManager 统一管理 VPN 后端,避免重复自启。
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅
分析:
潜在问题: 2. 代码质量 ✅
分析:
潜在问题:
建议:
3. 代码性能 ✅
分析:
潜在问题: 4. 代码安全 🔒
分析:
安全漏洞详情: 漏洞对比统计: 新增漏洞 0 个,减少漏洞 0 个,持平 0 个 建议: 💡 改进建议代码示例#!/bin/sh
# Disable the network manager plugin backend service.
# NetworkManager will start service automatically.
# Disable ipsec/xl2tpd/openvpn init.d services to avoid duplicate startup,
# as NetworkManager manages VPN backends centrally.
if [ ! -e /var/cache/deepin/mark-setup-network-services ]; then
update-rc.d ipsec disable || true
update-rc.d xl2tpd disable || true
update-rc.d openvpn disable || true
mkdir -p /var/cache/deepin
touch /var/cache/deepin/mark-setup-network-services
fi
#DEBHELPER#
exit 0📋 审查清单
本报告由 AI 代码审查工具自动生成 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: caixr23, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
The postinst from network-manager-integration-plugins (0.0.5-0deepin) was not migrated when its dependency was replaced with direct NM plugin deps in 581b0c6, leaving ipsec/xl2tpd/openvpn init.d services enabled on fresh installs.
fix: 迁移 network-manager-integration-plugins 的 VPN 后端禁用逻辑
581b0c6 移除 network-manager-integration-plugins 依赖时未迁移其 postinst 的 VPN 后端禁用逻辑,导致 ipsec/xl2tpd/openvpn 的 init.d 服务保持启用。 本提交将 postinst 原样迁移到 dcc-network-plugin,安装时自动禁用这三个服务。
Log: 迁移 VPN 后端禁用逻辑到 dcc-network-plugin
PMS: BUG-379501
Influence: 安装 dcc-network-plugin 后首次配置会禁用 ipsec/xl2tpd/openvpn 的 init.d 服务,由 NetworkManager 统一管理 VPN 后端,避免重复自启。
Summary by Sourcery
Bug Fixes: