# 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" &&
     for dir in "${MPD_LIB} ${MPD_DIRS}"; do
          if [[ ! -r ${dir} ]]; then
               mkdir -p ${dir}  &&
               chown musicdaemon:audio ${dir}
          fi
     done
fi
