blob: fb0adcbd45d299cf849cf3a4d86ea42833867064 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
set -e
#PKGOS-INCLUDE#
if [ "$1" = "configure" ] ; then
. /usr/share/debconf/confmodule
pkgos_register_endpoint_postinst nova nova compute "Nova Compute Service" 8774 /v2/'%(tenant_id)s'
db_get nova/active-api
if [ -n "${RET}" ] ; then
NOVA_APIS=`echo ${RET} | sed "s/ //g"`
pkgos_inifile set /etc/nova/nova.conf DEFAULT enabled_apis ${NOVA_APIS}
fi
db_stop
fi
#DEBHELPER#
exit 0
|