#!/bin/sh

set -e

. /usr/share/debconf/confmodule

CONF=/etc/cloudkitty/cloudkitty.conf

#PKGOS-INCLUDE#

pkgos_var_user_group cloudkitty
pkgos_dbc_read_conf -pkg cloudkitty-common ${CONF} database connection cloudkitty $@
pkgos_rabbit_read_conf ${CONF} oslo_messaging_rabbit cloudkitty
pkgos_read_admin_creds ${CONF} keystone_authtoken cloudkitty

db_go || true

exit 0
