2004-04-05 22:16:16 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
action="$1"
|
2005-02-05 16:24:47 -05:00
|
|
|
CONFDIR=/etc/mt-daapd
|
|
|
|
CONF=$CONFDIR/mt-daapd.conf
|
|
|
|
PLAY=$CONFDIR/mt-daapd.playlist
|
2004-06-02 01:28:52 -04:00
|
|
|
CACHE=/var/cache/mt-daapd
|
2004-04-05 22:16:16 -04:00
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
configure)
|
2005-02-05 16:24:47 -05:00
|
|
|
if [ ! -d $CONFDIR ]; then mkdir -p $CONFDIR; fi
|
2004-04-05 22:16:16 -04:00
|
|
|
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
|
2004-06-02 01:28:52 -04:00
|
|
|
if [ ! -d $CACHE ] ; then mkdir -p $CACHE; fi
|
2004-04-05 22:16:16 -04:00
|
|
|
;;
|
|
|
|
esac
|