#!/bin/sh
PRIVATE_LOCATION="/var/packages/WebDAVServer/target"
VOLUME=`/usr/bin/readlink ${PRIVATE_LOCATION} | /usr/bin/cut -d '/' -f2`
mkdir -p /${VOLUME}/@webdav

ORG_UDC_CONF="/usr/syno/etc/user.data.conf/dav.config"

if [ -f "$ORG_UDC_CONF" ]
then
	rm $ORG_UDC_CONF
fi

exit 0
