#!/bin/sh
# Copyright (C) 2000-2014 Synology Inc. All rights reserved.

if [ "$SYNOPKG_PKG_STATUS" != "UPGRADE" ]; then
	/usr/syno/bin/servicetool --remove-configure-file --package syno_tomcat_conf
	[ $? -ne 0 ] && echo "Failed to remove port of Tomcat from firewall" > $SYNOPKG_TEMP_LOGFILE
fi

exit 0
