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

. `dirname $0`/common

old_pkg_buildnumber="$(cat "$UPGRADE_FILE" | cut -d- -f2)"
rm "$UPGRADE_FILE"

if [ "$old_pkg_buildnumber" -eq "0105" ]; then
	# after stop twice both .htaccess and .htaccess.syno will be disable style.
	if grep -q "Synology Inc" "$HTACCESS_FILE_SYNO"; then
		cp $SYNOPKG_PKGDEST/synology_added/.htaccess.default.1.6.1.3 $HTACCESS_FILE_SYNO
	fi
fi

exit 0
