summaryrefslogtreecommitdiffhomepage
path: root/debian/keysafe-server.postrm
blob: f31defe568e5fb9257c5f2c8abac9dad2f8f191c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# 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
    groupdel _keysafe
fi