summaryrefslogtreecommitdiff
path: root/community/osiris/osiris.install
blob: 24497d8fd51caa30e409a27f1606e2f3f2c400b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
  if [ ! `grep osiris etc/group` ]; then
    groupadd -g 18 osiris &>/dev/null;
  fi

  id osiris &>/dev/null || \
    useradd -u 18 -g osiris -d /var/lib/osiris -s /bin/false osiris
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  userdel osiris &> /dev/null
  groupdel osiris &> /dev/null
}