From 0085ac96816e93f5790e6fc6c78ce53ba57bf39f Mon Sep 17 00:00:00 2001 From: Eric Price Date: Sat, 29 Mar 2008 18:44:45 -0400 Subject: [PATCH] Preinst script to create sipb-xen group. svn path=/trunk/packages/sipb-xen-www/; revision=332 --- debian/sipb-xen-www.preinst | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 debian/sipb-xen-www.preinst diff --git a/debian/sipb-xen-www.preinst b/debian/sipb-xen-www.preinst new file mode 100644 index 0000000..d5afbad --- /dev/null +++ b/debian/sipb-xen-www.preinst @@ -0,0 +1,40 @@ +#!/bin/sh +# preinst script for #PACKAGE# +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + if ! getent group sipb-xen > /dev/null; then + addgroup --system sipb-xen + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + -- 1.7.9.5