From 8083fcc5e0412ce34c19ad5c8a161d7269429134 Mon Sep 17 00:00:00 2001 From: Nado Date: Thu, 17 Nov 2016 15:08:08 +0100 Subject: [PATCH] media-sound/mpd: Fix pid_file presence check in init file Package-Manager: portage-2.3.2 Signed-off-by: Robin H. Johnson --- media-sound/mpd/files/mpd2.init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2