summarylogtreecommitdiffstats
path: root/systemtap.install
blob: 49e7ccfa7c49227d461ea2ca7264de370ed03be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
post_install() {
  for _g in stapusr stapsys stapdev; do
    getent group $_g >/dev/null || groupadd -r $_g
  done

  chgrp stapusr usr/bin/stapbpf
  chmod 04110 usr/bin/stapbpf

  chgrp stapusr usr/bin/staprun
  chmod 04110 usr/bin/staprun
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  for _g in stapusr stapsys stapdev; do
    groupdel $_g
  done
}