X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=init.d%2Fsfa;h=885865a5be8d7397099df0bd93fb0859aac2d6b5;hb=5b8f48a96358adf30514133504eff9f214cefc12;hp=475b821bc5c5bedbdf17441fc602fe84804d95c9;hpb=28eac17c30d5af62b0017e920fd742225e9864be;p=sfa.git diff --git a/init.d/sfa b/init.d/sfa index 475b821b..885865a5 100755 --- a/init.d/sfa +++ b/init.d/sfa @@ -167,6 +167,10 @@ function db_start () { echo "host $SFA_DB_NAME $SFA_DB_USER 127.0.0.1/32 password" [ -n "$registry_ip" ] && echo "host $SFA_DB_NAME $SFA_DB_USER ${registry_ip}/32 password" ) >>$pghba_conf + + if [ "$SFA_GENERIC_FLAVOUR" == "openstack" ] ; then + [ -n "$registry_ip" ] && echo "host nova nova ${registry_ip}/32 password" >> $pghba_conf + fi # Fix ownership (sed -i changes it) chown postgres:postgres $postgresql_conf $pghba_conf @@ -213,9 +217,6 @@ function db_start () { if ! psql -U $SFA_DB_USER -c "" $SFA_DB_NAME >/dev/null 2>&1 ; then createdb -U postgres --template=template0 --encoding=UNICODE --owner=$SFA_DB_USER $SFA_DB_NAME check - # install db schema - psql -U $SFA_DB_USER -f /usr/share/sfa/sfa.sql $SFA_DB_NAME - check fi check