mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
17 lines
444 B
Bash
17 lines
444 B
Bash
#!/bin/sh -e
|
|
|
|
action="$1"
|
|
CONFDIR=/etc/mt-daapd
|
|
CONF=$CONFDIR/mt-daapd.conf
|
|
PLAY=$CONFDIR/mt-daapd.playlist
|
|
CACHE=/var/cache/mt-daapd
|
|
|
|
case "$1" in
|
|
configure)
|
|
if [ ! -d $CONFDIR ]; then mkdir -p $CONFDIR; fi
|
|
if [ ! -f $CONF ] ; then cp /usr/share/doc/mt-daapd/mt-daapd.conf $CONF; fi
|
|
if [ ! -f $PLAY ] ; then cp /usr/share/doc/mt-daapd/mt-daapd.playlist $PLAY; fi
|
|
if [ ! -d $CACHE ] ; then mkdir -p $CACHE; fi
|
|
;;
|
|
esac
|