2 if [ ! `grep openfire /etc/group` ]; then
3 groupadd openfire &>/dev/null;
6 id openfire &>/dev/null || \
7 useradd -g openfire -d /opt/openfire -s /bin/false openfire
9 chown -R openfire:openfire /var/log/openfire
10 chown -R openfire:openfire /opt/openfire/
18 userdel openfire &> /dev/null
19 groupdel openfire &> /dev/null