#!/bin/sh
set -eu

if [ "$1" = upgrade ] && [ "${2:-}" != "0.2.0" ]; then
    echo "vpn-egressctl 0.2.0 does not support in-place upgrades from another release." >&2
    echo "Remove the installed release, archive its state, then install 0.2.0 cleanly." >&2
    exit 1
fi

exit 0
