media-sound/mpd: Fix pid_file presence check in init file

Package-Manager: portage-2.3.2
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Nado
2017-02-16 16:50:02 -08:00
committed by Robin H. Johnson
parent 15db6e8076
commit 8083fcc5e0
+2 -2
View File
@@ -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