blob: 98fc8f6a43a295c15bb42eae671ff16ac9bc0ed2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
groupdel _keysafe
fi
|