summaryrefslogtreecommitdiff
path: root/community/ejabberd/ejabberd.install
blob: 572667084dd9fc2a884246a46442630a3e8b90d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
post_install() {
  groupadd -r jabber
  useradd -r -G jabber -d /var/lib/ejabberd ejabberd
  chown -R ejabberd.jabber /var/log/ejabberd
  chown -R ejabberd.jabber /var/lib/ejabberd
  chown root:ejabberd /etc/ejabberd/ejabberd.yml /etc/ejabberd/ejabberdctl.cfg /etc/ejabberd
}

post_upgrade() {
  chown -R ejabberd.jabber /var/log/ejabberd
  chown -R ejabberd.jabber /var/lib/ejabberd
  chown root:ejabberd /etc/ejabberd/ejabberd.yml /etc/ejabberd/ejabberdctl.cfg /etc/ejabberd
  echo "!!! it is major update. Config must be converted to yaml format."
}

post_remove() {
  userdel ejabberd
  groupdel jabber
}

# vim:set ts=2 sw=2 et: