From 1c834f0e057e989ac80782ad2985a97658957121 Mon Sep 17 00:00:00 2001 From: Andrew Savchenko Date: Sun, 9 Jul 2017 03:45:46 +0300 Subject: [PATCH] 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 --- 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 fd67bb0f3f75..3fb32b7c3e43 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 $? -- 2.26.2