diff options
Diffstat (limited to 'community/ejabberd/ejabberd.install')
-rw-r--r-- | community/ejabberd/ejabberd.install | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/community/ejabberd/ejabberd.install b/community/ejabberd/ejabberd.install new file mode 100644 index 000000000..4f9fa0a8f --- /dev/null +++ b/community/ejabberd/ejabberd.install @@ -0,0 +1,25 @@ +post_install() { + groupadd jabber + useradd -G jabber -d /var/lib/ejabberd ejabberd + chown -R ejabberd.jabber /var/log/ejabberd + chown -R ejabberd.jabber /var/spool/ejabberd + chown -R ejabberd.jabber /var/lib/ejabberd + chown root:ejabberd /usr/lib/ejabberd/priv/bin/epam + chown root:ejabberd /etc/ejabberd/ejabberd.cfg /etc/ejabberd/ejabberdctl.cfg /etc/ejabberd + chmod 4750 /usr/lib/ejabberd/priv/bin/epam +} + +post_upgrade() { + chown -R ejabberd.jabber /var/log/ejabberd + chown -R ejabberd.jabber /var/spool/ejabberd + chown -R ejabberd.jabber /var/lib/ejabberd + chown root:ejabberd /etc/ejabberd/ejabberd.cfg /etc/ejabberd/ejabberdctl.cfg /etc/ejabberd + chown root:ejabberd /usr/lib/ejabberd/priv/bin/epam + chmod 4750 /usr/lib/ejabberd/priv/bin/epam +} + +post_remove() { + userdel ejabberd + groupdel jabber +} + |