#!/bin/sh
. "$(dirname "$0")/common"

CONFIG_PATH="/usr/syno/etc/packages/WebStation"
CONFIG_FILES="WebStation.json VirtualHost.json"

if [ "$SYNOPKG_PKG_STATUS" != UPGRADE ]; then
	for file in ${CONFIG_FILES}; do
		if [ -e "${CONFIG_PATH}/${file}" ]; then
			rm -f "${CONFIG_PATH}/${file}"
		fi
	done
fi

DO_REMOVE
exit 0
