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

. `dirname $0`/common

ALLOWED_BASE_VERSION="5.4.0 6.2.0"

#Only support upgrade from $ALLOWED_BASE_VERSION
for version in $ALLOWED_BASE_VERSION; do
	if [ "$INSTALLED_VERSION" = "$version" ]; then
		exit 0
	fi
done

msg_err=`echo $wizard_upgrade_version_error | /bin/sed "s/{0}/($ALLOWED_BASE_VERSION)/g"`
echo $msg_err >> ${SYNOPKG_TEMP_LOGFILE}

exit 1
