Ignore:
Timestamp:
Aug 24, 2008, 8:59:27 PM (16 years ago)
Author:
hartmans
Message:

Generate pg_hba.conf and install postgresql.conf
so that installing this package works without manual editing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-database/debian/sipb-xen-database-server.postinst

    r295 r918  
    1818# the debian-policy package
    1919
     20# dh_installdeb will replace this with shell code automatically
     21# generated by other debhelper scripts.
     22# Note that by moving this above our generated code we could run into significant problems
     23# if we happened to start a daemon, and use debconf
     24# We move this up here because we need the diversion of postgresql.conf to happen before we create tables
     25
     26#DEBHELPER#
     27
    2028
    2129case "$1" in
     
    2836            adduser --system sipb-xen
    2937        fi
     38        mako-render /etc/postgresql/8.1/main/pg_hba.conf.mako >/etc/postgresql/8.1/main/pg_hba.conf
     39        /etc/init.d/postgresql-8.1 restart
    3040        su sipb-xen -s /bin/sh -c 'sipb-xen-database-tables create'
    3141    ;;
     
    4050esac
    4151
    42 # dh_installdeb will replace this with shell code automatically
    43 # generated by other debhelper scripts.
    44 
    45 #DEBHELPER#
    46 
    4752exit 0
    4853
Note: See TracChangeset for help on using the changeset viewer.