#!/bin/sh # postinst script for firebird4.0-server set -e . /usr/share/debconf/confmodule set -u if [ -n "${DEBIAN_FIREBIRD_DEBUG:-}" ]; then set -x fi # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package # # quoting from the policy: # Any necessary prompting should almost always be confined to the # post-installation script, and should be protected with a conditional # so that unnecessary prompting doesn't happen if a package's # installation fails and the `postinst' is called with `abort-upgrade', # `abort-remove' or `abort-deconfigure'. FB_VER=4.0 . /usr/share/firebird${FB_VER}-common/functions.sh checkFirebirdAccount() { getent passwd firebird > /dev/null || \ adduser --system --quiet --home /var/lib/firebird \ --group --gecos "Firebird Database Administator" firebird } debhelper_hook() { # This is here in order to make debhelper_hook() a valid # shell procedure in the case when debhelper has nothing # for us DuMmYnOtUsEd="dummy" set +u #DEBHELPER# set -u } case "$1" in configure) checkFirebirdAccount firebird_config_postinst "$@" ;; *) debhelper_hook "$@" ;; esac exit 0 # vi: set sw=4 ts=8 filetype=sh sts=4 :