mirror of
https://github.com/SuperBFG7/ympd
synced 2024-12-27 03:10:26 +00:00
Fix: link mpd music_directory to mympd docroot
This commit is contained in:
parent
313f690003
commit
1d38363793
@ -47,6 +47,11 @@ then
|
|||||||
[ -d /usr/lib/systemd/system ] || sudo mkdir /usr/lib/systemd/system
|
[ -d /usr/lib/systemd/system ] || sudo mkdir /usr/lib/systemd/system
|
||||||
cp /usr/share/mympd/mympd.service /usr/lib/systemd/system/
|
cp /usr/share/mympd/mympd.service /usr/lib/systemd/system/
|
||||||
fi
|
fi
|
||||||
|
if [ -f /etc/mpd.conf ]
|
||||||
|
then
|
||||||
|
LIBRARY=$(grep ^music_directory /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
|
||||||
|
fi
|
||||||
chown -R mympd /var/lib/mympd
|
chown -R mympd /var/lib/mympd
|
||||||
/usr/share/mympd/crcert.sh
|
/usr/share/mympd/crcert.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user