#!/bin/sh
# postinst script for convirt

set -e

. /usr/share/debconf/confmodule

# source dbconfig-common shell library, and call the hook function
if [ -f /usr/share/dbconfig-common/dpkg/config.mysql ]; then
    . /usr/share/dbconfig-common/dpkg/config.mysql 
    dbc_go convirt $@
fi

case "$1" in
    configure)
		bash -c "source /usr/share/convirt/install/cms/common/functions; generate_cms_id"

    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0
