#!/bin/sh

set -e

if [ -n "$S9Y_DBG" ]; then
#  echo "now debugging $0 $@"
  set -x
fi

. /usr/share/debconf/confmodule

if [ -f /usr/share/dbconfig-common/dpkg/config ]; then
    dbc_dbtypes="mysql, pgsql, sqlite"
    . /usr/share/dbconfig-common/dpkg/config
    if ! dbc_go serendipity $@ ; then
        echo 'dbc_go (config) failed!'
    fi
fi
