mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user