case "$1" in
configure)
- echo "$2"
#Don't create users on upgrade
if [ -z "$2" ]; then
# Don't fail if the user/database already exists
fi
# The invirt user *must* exist
- if [ -z `getent passwd invirt` ]; then
+ if ! getent passwd invirt >/dev/null 2>&1; then
adduser --system invirt
fi
invoke-rc.d postgresql-8.3 restart