summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-oe/recipes-extended/cfengine/cfengine/set-path-of-default-config-file.patch
blob: db69f951caa3c3ed0a077ddd499b1f2fd9e35698 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From dc270040cb3beb5ca42f864813145c8a68594bad Mon Sep 17 00:00:00 2001
From: Kai Kang <kai.kang@windriver.com>
Date: Mon, 18 Jul 2016 09:06:06 +0800
Subject: [PATCH] cfengine: add recipe and base policy

Upstream-Status: Inappropriate [configuration]

Set the path of default configure file.

Signed-off-by: Kai Kang <kai.kang@windriver.com>

---
 misc/init.d/cfengine3.in | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/misc/init.d/cfengine3.in b/misc/init.d/cfengine3.in
index c584817..12f5803 100644
--- a/misc/init.d/cfengine3.in
+++ b/misc/init.d/cfengine3.in
@@ -101,14 +101,10 @@ if [ -z "$LOCKDIR" ]; then
 fi
 
 # default control file
-if [ "$DEBIAN" = "1" ]; then
-    DEFAULT=/etc/default/cfengine3
-    INIT_FUNCTIONS=/lib/lsb/init-functions
-    if [ -e "$INIT_FUNCTIONS" ]; then
-        . "$INIT_FUNCTIONS"
-    fi
-else
-    DEFAULT=/etc/sysconfig/cfengine3
+DEFAULT=/etc/default/cfengine3
+INIT_FUNCTIONS=/lib/lsb/init-functions
+if [ -e "$INIT_FUNCTIONS" ]; then
+    . "$INIT_FUNCTIONS"
 fi
 
 if [ -f $DEFAULT ]; then
OpenPOWER on IntegriCloud