- Timestamp:
- Oct 25, 2008, 8:58:40 PM (16 years ago)
- Location:
- trunk/packages/invirt-database-server
- Files:
-
- 2 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-database-server/debian/invirt-database-server.postinst
r1287 r1288 1 1 #!/bin/sh 2 # postinst script for #PACKAGE#2 # postinst script for invirt-database-server 3 3 # 4 4 # see: dh_installdeb(1) … … 32 32 if [ -z "$2" ]; then 33 33 # Don't fail if the user/database already exists 34 su postgres -c 'createuser sipb-xen-S -d -R' || true35 su postgres -c 'createdb sipb_xen -O sipb-xen' || true36 adduser --system sipb-xen34 su postgres -c 'createuser invirt -S -d -R' || true 35 su postgres -c 'createdb invirt -O invirt' || true 36 adduser --system invirt 37 37 fi 38 mako-render /etc/postgresql/8.3/main/pg_hba.conf.mako >/etc/postgresql/8.3/main/pg_hba.conf39 38 /etc/init.d/postgresql-8.3 restart 40 su sipb-xen -s /bin/sh -c 'sipb-xen-database-tables create'39 su invirt -s /bin/sh -c 'invirt-database-tables create' 41 40 ;; 42 41
Note: See TracChangeset
for help on using the changeset viewer.