#!/bin/sh set -e # ensure the server process has been killed before calling userdel(1) #DEBHELPER# # on a package purge, we nuke the keysafe user and the store of # shards. Note that it would be a security risk to delete the user # without also deleting the store of shards, so we leave both the user # and the store intact when the package is merely removed if [ "$1" = "purge" ]; then userdel --remove _keysafe || true groupdel _keysafe || true fi