commit:     1c834f0e057e989ac80782ad2985a97658957121
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  9 00:45:46 2017 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Sun Jul  9 01:05:20 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c834f0e

app-admin/abrt: fix bug 609126

Fix init script to be sh-compatible.

Package-Manager: Portage-2.3.6, Repoman-2.3.2
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>

 app-admin/abrt/files/abrt-2.0.12-r1-init | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/app-admin/abrt/files/abrt-2.0.12-r1-init 
b/app-admin/abrt/files/abrt-2.0.12-r1-init
index fd67bb0f3f7..3fb32b7c3e4 100644
--- a/app-admin/abrt/files/abrt-2.0.12-r1-init
+++ b/app-admin/abrt/files/abrt-2.0.12-r1-init
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 description="Automated crash detection service"
@@ -14,19 +14,19 @@ start() {
                --exec /usr/sbin/abrtd -- ${ABRTD_OPTS}
        eend $?
 
-       if [[ "${START_VMCORE}" = "yes" ]]; then
+       if [ "${START_VMCORE}" = "yes" ]; then
                ebegin "Running abrt-harvest-vmcore"
                /usr/sbin/abrt-harvest-vmcore
                eend $?
        fi
 
-       if [[ "${START_CCPP}" = "yes" ]]; then
+       if [ "${START_CCPP}" = "yes" ]; then
                ebegin "Installing abrt-ccpp hook"
                /usr/sbin/abrt-install-ccpp-hook install
                eend $?
        fi
 
-       if [[ "${START_OOPS}" = "yes" ]]; then
+       if [ "${START_OOPS}" = "yes" ]; then
                ebegin "Starting abrt-dump-oops"
                start-stop-daemon --start --quiet \
                        --pidfile /var/run/abrt/abrt-dump-oops.pid \
@@ -37,7 +37,7 @@ start() {
                eend $?
        fi
 
-       if [[ "${START_XORG}" = "yes" ]]; then
+       if [ "${START_XORG}" = "yes" ]; then
                ebegin "Starting abrt-dump-xorg"
                start-stop-daemon --start --quiet \
                        --pidfile /var/run/abrt/abrt-dump-xorg.pid \
@@ -50,21 +50,21 @@ start() {
 }
 
 stop() {
-       if [[ "${START_XORG}" = "yes" ]]; then
+       if [ "${START_XORG}" = "yes" ]; then
                ebegin "Stopping abrt-dump-xorg"
                start-stop-daemon --stop --quiet \
                        --pidfile /var/run/abrt/abrt-dump-xorg.pid
                eend $?
        fi
 
-       if [[ "${START_OOPS}" = "yes" ]]; then
+       if [ "${START_OOPS}" = "yes" ]; then
                ebegin "Stopping abrt-dump-oops"
                start-stop-daemon --stop --quiet \
                        --pidfile /var/run/abrt/abrt-dump-oops.pid
                eend $?
        fi
 
-       if [[ "${START_CCPP}" = "yes" ]]; then
+       if [ "${START_CCPP}" = "yes" ]; then
                ebegin "Uninstalling abrt-ccpp hook"
                /usr/sbin/abrt-install-ccpp-hook uninstall
                eend $?

Reply via email to