#!/bin/sh

ver_old=$2

if [ "$(apk version -t "$ver_old" '102.2.0-r4')" = '<' ]; then
	# renamed appid, needs profile migration
	cat 1>&2 <<-EOF
	*
	* firefox-esr now has a different appid, so you will see a default new
	* profile upon starting it. to use your old profile again, you have to
	* first migrate it using 'firefox-esr --ProfileManager'. select the
	* previous one (if you didn't rename it, it's probably named
	* default-something) to migrate it.
	*
	EOF
fi

exit 0
