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

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

post_upgrade() {
  post_install $1
}

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

post_remove() {
  /bin/true
}

# vim: ts=2 sw=2 et ft=sh