#!/bin/sh
. /var/packages/VideoStation/scripts/common

case "$SYNOPKG_PKG_STATUS" in
	UNINSTALL)
		if [ "$pkgwizard_remove_db" = "true" ]; then
			/usr/bin/dropdb -U postgres video_metadata
			rm -rf ${PACKAGE_DIR}/etc/*
		fi
	;;
	UPGRADE)
	;;
esac

exit 0
