Changeset 295
- Timestamp:
- Mar 28, 2008, 9:14:40 PM (17 years ago)
- Location:
- trunk/packages/sipb-xen-database/sipb-xen-database/debian
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-database/sipb-xen-database/debian/sipb-xen-database-server.postinst
r81 r295 21 21 case "$1" in 22 22 configure) 23 # Don't fail if the user/database already exists 24 su postgres -c 'createuser sipb-xen -S -d -R' || true 25 su postgres -c 'createdb sipb_xen -O sipb-xen' || true 26 adduser --system sipb-xen 27 23 #Don't create users on upgrade 24 if [ -z "$2" ]; then 25 # Don't fail if the user/database already exists 26 su postgres -c 'createuser sipb-xen -S -d -R' || true 27 su postgres -c 'createdb sipb_xen -O sipb-xen' || true 28 adduser --system sipb-xen 29 fi 28 30 su sipb-xen -s /bin/sh -c 'sipb-xen-database-tables create' 29 31 ;; -
trunk/packages/sipb-xen-database/sipb-xen-database/debian/sipb-xen-database-server.prerm
r81 r295 19 19 20 20 case "$1" in 21 remove| upgrade|deconfigure)21 remove|deconfigure) 22 22 23 23 # This will destroy data -- do we want to do this? … … 27 27 ;; 28 28 29 failed-upgrade)29 upgrade|failed-upgrade) 30 30 ;; 31 31
Note: See TracChangeset
for help on using the changeset viewer.