app-admin/abrt: fix bug 609126
authorAndrew Savchenko <bircoph@gentoo.org>
Sun, 9 Jul 2017 00:45:46 +0000 (03:45 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Sun, 9 Jul 2017 01:05:20 +0000 (04:05 +0300)
Fix init script to be sh-compatible.

Package-Manager: Portage-2.3.6, Repoman-2.3.2
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
app-admin/abrt/files/abrt-2.0.12-r1-init

index fd67bb0f3f75bab318885b0ad544444dd730856d..3fb32b7c3e435add515c754384ff5bdb6847da7d 100644 (file)
@@ -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 $?