#!/bin/sh

set -eu

case "$1" in
    0) # This is a yum/dnf remove.
        userdel stork-server >/dev/null || /bin/true
        ;;
    1)  # This is a yum/dnf upgrade.
        # Do nothing.
        ;;
esac
