summaryrefslogtreecommitdiffhomepage
path: root/debian/keysafe-server.postrm
blob: ad695dae0b8e29b2b82b8fe619dbcc7d6c7f87cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

# ensure the server process has been killed before calling userdel(1)

#DEBHELPER#

# For the time being, at the request of upstream, we don't ever delete
# /var/lib/keysafe, even on a purge (note that for security this
# requires that we also never delete the _keysafe user and group)

# Deleting this data has the potential to destroy the backups of
# people's private keys, so it probably shouldn't ever happen
# automatically

# Nevertheless, we might want to revisit this decision when it's time
# to upload keysafe to sid, so the following maintscript is retained,
# commented-out:

#if [ "$1" = "purge" ]; then
#    userdel --remove _keysafe || true
#    groupdel _keysafe || true
#fi