#!/bin/sh

ver_old=$1

if [ "$(apk version -t "$ver_old" '1.28.1-r4')" = '<' ]; then
	cat >&2 <<-EOF
	*
	* webui location was changed to /usr/share/webapps/vaultwarden-web,
	* and the conf.d was updated to reflect this. ensure yours updates to the change too:
	*  export WEB_VAULT_FOLDER=/usr/share/webapps/vaultwarden-web/
	* the webui was also moved to a subpackage (vaultwarden-web-vault), so if you use it,
	* you have to install that separately now.
	*
	EOF
fi
