From 72d78505cbb2f5705e8dfa5eb635d36009b08006 Mon Sep 17 00:00:00 2001 From: yueyuankun Date: Wed, 8 May 2024 14:47:06 +0800 Subject: [PATCH] Do not hard code vendor name in source code --- security-tool.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/security-tool.spec b/security-tool.spec index 8f7f78d..8b78bb1 100644 --- a/security-tool.spec +++ b/security-tool.spec @@ -2,7 +2,7 @@ Summary: openEuler Security Tool Name : security-tool Version: 2.0 -Release: 1.88 +Release: 1.89 Source0: https://gitee.com/openeuler/security-tool/repository/archive/v2.0.tar.gz License: MulanPSL-2.0 URL: https://gitee.com/openeuler/security-tool @@ -31,6 +31,9 @@ Patch7: security-tool-add-grub2-password-for-legacy.patch %prep %autosetup -n security-tool-v%{version} -p1 sed -i 's|@VENDOR@|%{vendor}|g' custom-security.service +sed -i 's|openEuler|%{vendor}|g' security-tool.sh security.conf security +SYS_VENDOR=`echo %{vendor} | tr '[:lower:]' '[:upper:]'` +sed -i "s|OPENEULER|$SYS_VENDOR|g" security-tool.sh security.conf security %build @@ -127,6 +130,9 @@ fi %attr(0500,root,root) %{_sbindir}/security-tool.sh %changelog +* Wed May 08 2024 yueyuankun - 2.0-1.89 +- Do not hard code vendor name in source code + * Fri Jun 09 2023 yueyuankun - 2.0-1.88 - Type:bugfix - ID:NA -- Gitee