diff options
author | Nado <nado@troglodyte.be> | 2016-11-17 15:08:08 +0100 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2017-02-16 16:50:02 -0800 |
commit | 8083fcc5e0412ce34c19ad5c8a161d7269429134 (patch) | |
tree | 44ae033d222c85322b994515041c1473a08449d7 /media-sound/mpd | |
parent | 15db6e80760c5c0633251eaf0058ca8e6a10ff2f (diff) | |
download | gentoo-8083fcc5e0412ce34c19ad5c8a161d7269429134.tar.gz gentoo-8083fcc5e0412ce34c19ad5c8a161d7269429134.tar.xz |
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>
Diffstat (limited to 'media-sound/mpd')
-rw-r--r-- | media-sound/mpd/files/mpd2.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media-sound/mpd/files/mpd2.init b/media-sound/mpd/files/mpd2.init index d8b9de8938a..7e6e2397999 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 |