#!/bin/sh
set -eu

case "${1:-}" in
  remove|purge)
    if command -v systemctl >/dev/null 2>&1; then
      systemctl daemon-reload || true
    fi
    ;;
esac

if [ "${1:-}" = "purge" ]; then
  echo "PSSP state remains in /var/lib/pssp and was not deleted. Remove it manually only after taking a backup."
fi
