1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-06-16 18:19:56 +00:00

Merge pull request #25 from archphile/master

library symlinking fix
This commit is contained in:
Jürgen Mang 2018-07-30 00:07:03 +02:00 committed by GitHub
commit d19dfc05f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ sudo chown nobody /var/lib/mympd
echo "Trying to link musicdir to library"
if [ -f /etc/mpd.conf ]
then
LIBRARY=$(grep music /etc/mpd.conf | awk {'print $2'})
LIBRARY=$(grep music /etc/mpd.conf | awk {'print $2'} | sed -e 's/"//g')
[ "$LIBRARY" != "" ] && [ ! -e /usr/share/mympd/htdocs/library ] && ln -s $LIBRARY /usr/share/mympd/htdocs/library
else
echo "/etc/mpd.conf not found, you must link your musicdir manually to /usr/share/mympd/htdocs/library"