- Timestamp:
- Dec 24, 2009, 7:00:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.