Changeset 2781 for trunk/packages
- Timestamp:
- Dec 24, 2009, 7:00:01 PM (15 years ago)
- Location:
- trunk/packages/invirt-database/debian
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-database/debian/changelog
r2535 r2781 1 invirt-database (0.2.3) unstable; urgency=low 2 3 * Test whether invirt user exists in postinst 4 5 -- Greg Brockman <gdb@mit.edu> Thu, 24 Dec 2009 18:58:32 -0500 6 1 7 invirt-database (0.2.2) unstable; urgency=low 2 8 -
trunk/packages/invirt-database/debian/invirt-database-server.postinst
r2218 r2781 29 29 case "$1" in 30 30 configure) 31 echo "$2" 31 32 #Don't create users on upgrade 32 33 if [ -z "$2" ]; then … … 34 35 su postgres -c 'createuser invirt -S -d -R' || true 35 36 su postgres -c 'createdb invirt -O invirt' || true 36 adduser --system invirt37 37 fi 38 39 # The invirt user *must* exist 40 if [ -z `getent passwd invirt` ]; then 41 adduser --system invirt 42 fi 38 43 invoke-rc.d postgresql-8.3 restart 39 44 su invirt -s /bin/sh -c 'invirt-database-tables create'
Note: See TracChangeset
for help on using the changeset viewer.