From: Nado Date: Thu, 17 Nov 2016 14:08:08 +0000 (+0100) Subject: media-sound/mpd: Fix pid_file presence check in init file X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8083fcc5e0412ce34c19ad5c8a161d7269429134;p=gentoo.git media-sound/mpd: Fix pid_file presence check in init file Package-Manager: portage-2.3.2 Signed-off-by: Robin H. Johnson --- diff --git a/media-sound/mpd/files/mpd2.init b/media-sound/mpd/files/mpd2.init index d8b9de8938ab..7e6e23979995 100644 --- a/media-sound/mpd/files/mpd2.init +++ b/media-sound/mpd/files/mpd2.init @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -14,7 +14,7 @@ checkconfig() { return 1 fi - if ! grep -q ^pid_file /etc/mpd.conf; then + if ! grep -q '^\s*pid_file' /etc/mpd.conf; then eerror "Invalid configuration: pid_file needs to be set." return 1 fi