18
18
. /usr/share/debconf/confmodule
20
# Update the initial RAM file system image
20
# Update the initial RAM filesystem image
23
if [ -x /usr/sbin/update-initramfs ]; then
24
update-initramfs -u -k all
23
if type update-initramfs >/dev/null 2>&1; then
28
28
# Add user and group
30
# Rename old "mandos" user and group
31
case "$(getent passwd mandos)" in
32
*:Mandos\ password\ system,,,:/nonexistent:/bin/false)
33
usermod --login _mandos mandos
34
groupmod --new-name _mandos mandos
38
# Create new user and group
39
if ! getent passwd _mandos >/dev/null; then
40
adduser --system --force-badname --quiet --home /nonexistent \
41
--no-create-home --group --disabled-password \
42
--gecos "Mandos password system" _mandos
30
if ! getent passwd mandos >/dev/null; then
31
adduser --disabled-password --quiet --system \
32
--home /var/run/mandos --no-create-home \
33
--gecos "Mandos password daemon" --group mandos
46
37
# Create client key pair
48
if [ -r /etc/keys/mandos/pubkey.txt \
49
-a -r /etc/keys/mandos/seckey.txt ]; then
52
if [ -x /usr/sbin/mandos-keygen ]; then
39
if type mandos-keygen >/dev/null 2>&1; then