-#! /bin/sh
-# Abort if any command returns an error value
+#!/bin/sh
+# postinst script for citadel-client
+
set -e
case "$1" in
- configure)
- if ! getent group citadel >/dev/null; then
- groupadd citadel
- fi
- if ! getent passwd citadel >/dev/null; then
- adduser --system --ingroup citadel --home /var/lib/citadel \
- --gecos "Citadel system user" --shell /bin/sh \
- --disabled-password citadel
- fi
- mkdir -p /etc/citadel
- chown citadel:citadel /etc/citadel/citadel.rc
- ;;
- abort-upgrade|abort-remove|abort-deconfigure)
+ configure)
+ if ! getent group citadel >/dev/null; then
+ groupadd citadel
+ fi
+
+ if ! getent passwd citadel >/dev/null; then
+ adduser --system --ingroup citadel --home /var/lib/citadel \
+ --gecos "Citadel system user" --shell /bin/sh \
+ --disabled-password citadel
+ fi
+
+ mkdir -p /etc/citadel
+ chown citadel:citadel /etc/citadel/citadel.rc
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
;;
- *) echo "$0: didn't understand being called with \`$1'" 1>&2
- exit 1;;
esac
#DEBHELPER#
+
exit 0