#!/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/jonas && /etc/init.d/jonas stop >/dev/null || true
/usr/sbin/groupadd -r jonas 2> /dev/null || :
/usr/sbin/useradd -r -g jonas -s /bin/bash \
                  -c "Jonas - Java[tm] Open Application Server" \
                  -d /usr/share/jonas jonas 2> /dev/null || :