]> code.citadel.org Git - citadel.git/blobdiff - citadel/debian/citadel-client.postinst
Bumped version numbers to 8.11 for upcoming release
[citadel.git] / citadel / debian / citadel-client.postinst
index eeee37f7cec68cec176ec33e8d476daaa7c13644..190f16a8960b557fb79994a969b81f21b02fcf68 100644 (file)
@@ -1,25 +1,24 @@
-#! /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
+    configure)
+        if test -f /etc/citadel/citadel.rc; then
+           chown citadel:citadel /etc/citadel/citadel.rc
        fi
-       mkdir -p /etc/citadel
-       chown citadel:citadel /etc/citadel/citadel.rc
-       ;;
-  abort-upgrade|abort-remove|abort-deconfigure)
     ;;
-  *) echo "$0: didn't understand being called with \`$1'" 1>&2
-     exit 1;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
 esac
 
 #DEBHELPER#
+
 exit 0