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

  # run inetsim setup script
  cd /opt/inetsim
  ./setup.sh

}

post_upgrade() {
  post_install $1
}

pre_remove() {
  # remove users & groups
  groupdel inetsim &> /dev/null
}