Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/mt-daapd/files/
Date: Sun, 12 Feb 2017 14:05:46
Message-Id: 1486908304.675df0a12902169b7ae1a24d286b7db773cf9d68.bircoph@gentoo
1 commit: 675df0a12902169b7ae1a24d286b7db773cf9d68
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 12 14:05:04 2017 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 12 14:05:04 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=675df0a1
7
8 media-sound/mt-daapd: fix bug 335298
9
10 Make init script POSIX compliant.
11
12 Package-Manager: Portage-2.3.3, Repoman-2.3.1
13 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
14
15 media-sound/mt-daapd/files/mt-daapd.init.2 | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
18 diff --git a/media-sound/mt-daapd/files/mt-daapd.init.2 b/media-sound/mt-daapd/files/mt-daapd.init.2
19 index 7c0a69651f..4211bdff92 100644
20 --- a/media-sound/mt-daapd/files/mt-daapd.init.2
21 +++ b/media-sound/mt-daapd/files/mt-daapd.init.2
22 @@ -1,5 +1,5 @@
23 #!/sbin/openrc-run
24 -# Copyright 1999-2004 Gentoo Foundation
25 +# Copyright 1999-2017 Gentoo Foundation
26 # Distributed under the terms of the GNU General Public License v2
27 # $Id$
28 # Somehow based on init.d file shipped with mt-daapd itself.
29 @@ -17,7 +17,7 @@ if [ -f /lib/librc.so -o -f /etc/init.d/sysfs -o -f /lib/rc/version ]; then
30 fi
31
32 CONF="${myservice##*.}"
33 -if [[ -n ${CONF} && ${myservice} != "mt-daapd" ]]; then
34 +if [ -n ${CONF} -a ${myservice} != "mt-daapd" ]; then
35 PIDFILE="/var/run/mt-daapd.${CONF}.pid"
36 CONFFILE="/etc/mt-daapd.d/${CONF}.conf"
37 else