blob: c141548211383484a8462f679fd7620c3cc74c9e (
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 || true
groupdel _keysafe || true
fi
|