summarylogtreecommitdiffstats
path: root/inetsim.install
blob: c4e1998ea60cf617a9fc32d7e0bb34ec8c363a29 (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() {
  # 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

  echo "[+] You can start the daemon with 'systemctl start inetsim'"
  echo "[+] You find the conf files in /opt/inetsim/conf/"

}

post_upgrade() {
  post_install $1
}

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