2 if [ ! `grep mrimt /etc/group` ]; then
3 groupadd mrimt &>/dev/null;
6 id mrimt &>/dev/null || \
7 useradd -g mrimt -d /var/empty mrimt
9 chown mrimt.mrimt -R /var/{spool,log,lib,run}/mrimt
10 chown mrimt.mrimt -R /usr/lib/mrimt
11 chmod +x /usr/lib/mrimt/src/mrim.py
12 chown mrimt.mrimt /etc/ejabberd/mrimt.conf
13 sudo -u mrimt touch /var/log/mrimt/mrimt.log
22 userdel mrimt &> /dev/null
23 groupdel mrimt &> /dev/null