summarylogtreecommitdiffstats
path: root/portal.install
blob: b3187c806790bd6f014ab7f24ef74a56dc7ea26e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
post_install() {
  getent passwd portal &>/dev/null || useradd -r portal -s /bin/false >/dev/null
  portal-postconf -d $(hostname)
  portal-doveconf
  true
}

post_upgrade() {
  post_install
}

post_remove() {
  getent passwd portal &>/dev/null && userdel  portal >/dev/null
  getent group  portal &>/dev/null && groupdel portal >/dev/null
  post_install
}