1 |
commit: 1c834f0e057e989ac80782ad2985a97658957121 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 9 00:45:46 2017 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 9 01:05:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c834f0e |
7 |
|
8 |
app-admin/abrt: fix bug 609126 |
9 |
|
10 |
Fix init script to be sh-compatible. |
11 |
|
12 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
13 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
14 |
|
15 |
app-admin/abrt/files/abrt-2.0.12-r1-init | 16 ++++++++-------- |
16 |
1 file changed, 8 insertions(+), 8 deletions(-) |
17 |
|
18 |
diff --git a/app-admin/abrt/files/abrt-2.0.12-r1-init b/app-admin/abrt/files/abrt-2.0.12-r1-init |
19 |
index fd67bb0f3f7..3fb32b7c3e4 100644 |
20 |
--- a/app-admin/abrt/files/abrt-2.0.12-r1-init |
21 |
+++ b/app-admin/abrt/files/abrt-2.0.12-r1-init |
22 |
@@ -1,5 +1,5 @@ |
23 |
#!/sbin/openrc-run |
24 |
-# Copyright 1999-2012 Gentoo Foundation |
25 |
+# Copyright 1999-2017 Gentoo Foundation |
26 |
# Distributed under the terms of the GNU General Public License v2 |
27 |
|
28 |
description="Automated crash detection service" |
29 |
@@ -14,19 +14,19 @@ start() { |
30 |
--exec /usr/sbin/abrtd -- ${ABRTD_OPTS} |
31 |
eend $? |
32 |
|
33 |
- if [[ "${START_VMCORE}" = "yes" ]]; then |
34 |
+ if [ "${START_VMCORE}" = "yes" ]; then |
35 |
ebegin "Running abrt-harvest-vmcore" |
36 |
/usr/sbin/abrt-harvest-vmcore |
37 |
eend $? |
38 |
fi |
39 |
|
40 |
- if [[ "${START_CCPP}" = "yes" ]]; then |
41 |
+ if [ "${START_CCPP}" = "yes" ]; then |
42 |
ebegin "Installing abrt-ccpp hook" |
43 |
/usr/sbin/abrt-install-ccpp-hook install |
44 |
eend $? |
45 |
fi |
46 |
|
47 |
- if [[ "${START_OOPS}" = "yes" ]]; then |
48 |
+ if [ "${START_OOPS}" = "yes" ]; then |
49 |
ebegin "Starting abrt-dump-oops" |
50 |
start-stop-daemon --start --quiet \ |
51 |
--pidfile /var/run/abrt/abrt-dump-oops.pid \ |
52 |
@@ -37,7 +37,7 @@ start() { |
53 |
eend $? |
54 |
fi |
55 |
|
56 |
- if [[ "${START_XORG}" = "yes" ]]; then |
57 |
+ if [ "${START_XORG}" = "yes" ]; then |
58 |
ebegin "Starting abrt-dump-xorg" |
59 |
start-stop-daemon --start --quiet \ |
60 |
--pidfile /var/run/abrt/abrt-dump-xorg.pid \ |
61 |
@@ -50,21 +50,21 @@ start() { |
62 |
} |
63 |
|
64 |
stop() { |
65 |
- if [[ "${START_XORG}" = "yes" ]]; then |
66 |
+ if [ "${START_XORG}" = "yes" ]; then |
67 |
ebegin "Stopping abrt-dump-xorg" |
68 |
start-stop-daemon --stop --quiet \ |
69 |
--pidfile /var/run/abrt/abrt-dump-xorg.pid |
70 |
eend $? |
71 |
fi |
72 |
|
73 |
- if [[ "${START_OOPS}" = "yes" ]]; then |
74 |
+ if [ "${START_OOPS}" = "yes" ]; then |
75 |
ebegin "Stopping abrt-dump-oops" |
76 |
start-stop-daemon --stop --quiet \ |
77 |
--pidfile /var/run/abrt/abrt-dump-oops.pid |
78 |
eend $? |
79 |
fi |
80 |
|
81 |
- if [[ "${START_CCPP}" = "yes" ]]; then |
82 |
+ if [ "${START_CCPP}" = "yes" ]; then |
83 |
ebegin "Uninstalling abrt-ccpp hook" |
84 |
/usr/sbin/abrt-install-ccpp-hook uninstall |
85 |
eend $? |