1
0
mirror of https://github.com/SuperBFG7/ympd synced 2024-12-25 02:20:27 +00:00

Fix: link/remove library and pics

This commit is contained in:
jcorporation 2018-09-20 21:36:38 +01:00
parent 1df960d446
commit 9272b69c9f
2 changed files with 15 additions and 1 deletions

View File

@ -5,4 +5,6 @@ rm -rf debian/tmp
rm -f debian/files
rm -f htdocs/js/bootstrap-native-v4.min.js
rm -f htdocs/css/bootstrap.min.css
rm -f htdocs/library
rm -f htdocs/pics
find ./ -name \*~ -delete

View File

@ -1,8 +1,20 @@
#/bin/sh
cp dist/htdocs/js/bootstrap-native-v4.min.js htdocs/js/
cp dist/htdocs/js/bootstrap-native-v4.js htdocs/js/bootstrap-native-v4.min.js
cp dist/htdocs/css/bootstrap.min.css htdocs/css/
echo "Trying to link musicdir to library"
if [ -f /etc/mpd.conf ]
then
LIBRARY=$(grep ^music_directory /etc/mpd.conf | awk {'print $2'} | sed -e 's/"//g')
[ "$LIBRARY" != "" ] && [ ! -e htdocs/library ] && ln -s "$LIBRARY" htdocs/library
else
echo "/etc/mpd.conf not found, you must link your music_directory manually to htdocs/library"
fi
echo "Linking pics directory"
[ -e htdocs/pics ] || ln -s /var/lib/mympd/pics htdocs/
[ -d debug ] || mkdir debug
cd debug
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=DEBUG ..