Skip to content

Commit

Permalink
media-sound/mpd: Fix pid_file presence check in init file
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.2
Signed-off-by: Robin H. Johnson <[email protected]>
  • Loading branch information
nado authored and robbat2 committed Feb 17, 2017
1 parent 15db6e8 commit 8083fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media-sound/mpd/files/mpd2.init
Original file line number Diff line number Diff line change
@@ -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$

Expand All @@ -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
Expand Down

0 comments on commit 8083fcc

Please sign in to comment.