#!/bin/sh
RPM_INSTALL_PREFIX=
export RPM_INSTALL_PREFIX
# the old version of the server must be stopped before it is updated
# it will not be restarted because the configuration has been most
# probably changed and it is not garanted that the new version
# will work with the old configuration
test -e /etc/init.d/jboss && /etc/init.d/jboss stop > /dev/null || true
/usr/sbin/groupadd -r jboss 2> /dev/null || :
/usr/sbin/useradd -r -g jboss -s /bin/bash \
                  -c "JBoss - Java[tm] Application Server" \
                  -d /usr/share/jboss jboss 2> /dev/null || :