From cfb9377274a167a031062e2e6062b23b59764ddd Mon Sep 17 00:00:00 2001 From: yeshanshan Date: Fri, 29 Aug 2025 11:16:37 +0800 Subject: [PATCH] fix: remove exit on postinst reload failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Removed the exit 1 command when configuration reload fails in postinst script to comply with Debian post-installation script standards. Post-installation scripts should not exit abnormally as it can break package management operations. The error logging and message output are preserved to ensure proper error reporting without interrupting the package installation process. fix: 移除 postinst 重载失败时的退出操作 移除 postinst 脚本中配置重载失败时的 exit 1 命令,以符合 Debian 安装后脚 本规范。安装后脚本不应异常退出,否则可能破坏包管理操作。保留错误日志和消 息输出功能,确保在不中断包安装过程的情况下进行正确的错误报告。 --- debian/dde-dconfig-daemon.postinst | 1 - 1 file changed, 1 deletion(-) diff --git a/debian/dde-dconfig-daemon.postinst b/debian/dde-dconfig-daemon.postinst index 4f20d6f..e8d8b54 100644 --- a/debian/dde-dconfig-daemon.postinst +++ b/debian/dde-dconfig-daemon.postinst @@ -14,7 +14,6 @@ if [ "$1" = "triggered" ]; then else logger -t "dde-dconfig-daemon" -p daemon.err "Configuration trigger detected, reload failed" 2>/dev/null || true echo "ERROR: Configuration trigger detected, reload failed" >&2 - exit 1 fi fi