1. Rename file name from openeuler-xx to custom-xx. 2. Mofify all openeuler string to @VENDOR@ and define it during building RPM. Change-Id: Ia55ce06194986bc86ed2c4f5328cf3c965ea9d04 Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
42 lines
1.7 KiB
Diff
42 lines
1.7 KiB
Diff
From d9e61c144ba0988c4931d516f754673678a0b026 Mon Sep 17 00:00:00 2001
|
|
From: Chenxi Mao <chenxi.mao@suse.com>
|
|
Date: Fri, 6 Jan 2023 15:04:13 +0800
|
|
Subject: [PATCH 1/1] Do not hard code vendor name in source code
|
|
|
|
Signed-off-by: Chenxi Mao <chenxi.mao@suse.com>
|
|
---
|
|
openEuler-security.service => custom-security.service | 6 +++---
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
rename openEuler-security.service => custom-security.service (81%)
|
|
|
|
diff --git a/openEuler-security.service b/custom-security.service
|
|
similarity index 81%
|
|
rename from openEuler-security.service
|
|
rename to custom-security.service
|
|
index ab60920..0e15e5f 100644
|
|
--- a/openEuler-security.service
|
|
+++ b/custom-security.service
|
|
@@ -14,7 +14,7 @@
|
|
#######################################################################################
|
|
|
|
[Unit]
|
|
-Description=OpenEuler Security Tool
|
|
+Description=@VENDOR@ Security Tool
|
|
After=network.target sshd.service auditd.service crond.service tuned.service NetworkManager.service
|
|
Wants=sshd.service auditd.service rsyslog.service tuned.service NetworkManager.service
|
|
ConditionFileIsExecutable=/usr/sbin/security-tool.sh
|
|
@@ -22,8 +22,8 @@ ConditionFileIsExecutable=/usr/sbin/security-tool.sh
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
-EnvironmentFile=/etc/openEuler_security/security
|
|
-ExecStart=/usr/sbin/security-tool.sh -d / -c /etc/openEuler_security/security.conf -u /etc/openEuler_security/usr-security.conf -l /var/log/openEuler-security.log -s
|
|
+EnvironmentFile=/etc/@VENDOR@_security/security
|
|
+ExecStart=/usr/sbin/security-tool.sh -d / -c /etc/@VENDOR@_security/security.conf -u /etc/@VENDOR@_security/usr-security.conf -l /var/log/@VENDOR@-security.log -s
|
|
TimeoutSec=0
|
|
|
|
[Install]
|
|
--
|
|
2.33.0
|
|
|