summaryrefslogtreecommitdiffstats
path: root/audio-players/mpd/FINAL
diff options
context:
space:
mode:
Diffstat (limited to 'audio-players/mpd/FINAL')
-rwxr-xr-xaudio-players/mpd/FINAL21
1 files changed, 10 insertions, 11 deletions
diff --git a/audio-players/mpd/FINAL b/audio-players/mpd/FINAL
index a1541a74fb..3f3ab113d4 100755
--- a/audio-players/mpd/FINAL
+++ b/audio-players/mpd/FINAL
@@ -1,20 +1,19 @@
# If the user chose to install init script
# we do what mpd need to run as a service correctly
-if [[ $INIT_INSTALLED ]]; then
- local MPD_LIB="${INSTALL_ROOT}/var/lib/mpd" &&
- local MPD_DIRS="${MPD_LIB}/music ${MPD_LIB}/playlists" &&
- local MPD_FILES="${INSTALL_ROOT}/var/log/mpd.log ${INSTALL_ROOT}/var/log/mpd.error" &&
- for dir in "${MPD_LIB} ${MPD_DIRS}";
- do
+if [[ $INIT_INSTALLED ]]; then
+ local MPD_LIB="${INSTALL_ROOT}/var/lib/mpd" &&
+ local MPD_DIRS="${MPD_LIB}/music ${MPD_LIB}/playlists" &&
+ local MPD_FILES="${INSTALL_ROOT}/var/log/mpd.log" &&
+ for dir in "${MPD_LIB} ${MPD_DIRS}"; do
if [[ ! -r ${dir} ]]; then
- mkdir -p ${dir} &&
+ mkdir -p ${dir} &&
chown musicdaemon:audio ${dir}
fi
- done &&
- for file in ${MPD_FILES};
- do
+ done &&
+
+ for file in ${MPD_FILES}; do
if [[ ! -r ${file} ]]; then
- touch ${file} &&
+ touch ${file} &&
chown musicdaemon:audio ${file}
fi
done